dannyict Posted August 18, 2011 Posted August 18, 2011 (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 August 18, 2011 by dannyict
hannes08 Posted August 18, 2011 Posted August 18, 2011 Hi dannyict, what is WPI? 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]
dannyict Posted August 18, 2011 Author Posted August 18, 2011 Try using the "All Users Desktop" directoryIf you mean @DesktopCommonDir, I tried but it's the same problemWPI= Windows Post Install Wizard
Juvigy Posted August 18, 2011 Posted August 18, 2011 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:\
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now