Jump to content

Convert WSH to AU3


mikep56
 Share

Recommended Posts

Hi All,

This is an awesome board, and along with the MSFN boards, the amount of info is incredible.

I have been using nLite and WPI along with AutoIt to do unattended application installs for quite a while now. On occasion I will run across an application that either doesn't have an icon associated with it, or doesn't put a shortcut on the desktop. I have been using a WSH script that runs inside of WPI to put a shortcut on the desktop. Can this be done easier with an AutoIt script, or should I just stick with the WSH script? I can change the WSH script from one app to another to get the job done, but I really do not understand WSH, whereas I have a decent grasp of AutoIt.

Thanks for any responses.

Regards,

Mike

Link to comment
Share on other sites

straight from help

; Sets a [color="#ffffff"]shortcut[/color] with ctrl+alt+t hotkey
FileCreateShortcut(@WindowsDir & "\Explorer.exe",@DesktopDir & "\[color="#ffffff"]Shortcut[/color]  Test.lnk",@WindowsDir,"/e,c:\", "This is an Explorer link;-)", @SystemDir & "\shell32.dll",  "^!t",  "15",  @SW_MINIMIZE)

all that info isn't necessary, see help

8)

NEWHeader1.png

Link to comment
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
 Share

  • Recently Browsing   0 members

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