Jump to content
Sign in to follow this  
dannyict

Autoit + WPI

Recommended Posts

dannyict

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

Share this post


Link to post
Share on other sites
hannes08

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]

Share this post


Link to post
Share on other sites
dannyict

Try using the "All Users Desktop" directory

If you mean @DesktopCommonDir, I tried but it's the same problem

WPI= Windows Post Install Wizard

Share this post


Link to post
Share on other sites
Juvigy

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:\

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×