Jump to content

Recommended Posts

Posted (edited)

Trying to install a program and copy a file to desktop and it's working but when I put the compiled script in WPI

the install runs fine but the file does not get copied to desktop. Anyone has an idea how to fix that? Thanks

Here's the script

;Edukleuter
RunWait("Edukleuter.exe /SILENT /SUPPRESSMSGBOXES /NORESTART /SP-")
sleep (500)
FileCopy("Edukleuters.lnk", @DesktopDir)
Edited by dannyict
Posted

Hi dannyict,

what is WPI? :mellow:

If you're not installing the program under the current user's account, then @DesktopDir might point to another directory than you believe it does. Try using the "All Users Desktop" directory.

Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
Posted

put some error checking to see what is the error. I guess security issues accessing the desctop dir.

Check if it is OK putting the file in C:\

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...