justacoder
15th June 2003 09:27 UTC
NSIS Coding
Hi
I am a professional web designer, i am currently learning C++ and made a couple of games. The games require some graphics files eg.coloured balls to be imported into the game every so often. The game calls these files from a folder in which the .exe is contained. I wish to use the NSIS installer to move the folder containing the graphics and .exe to a place on the start menu and to create a shortcut to the .exe on the desktop... is this possible?
:)
Nick
deguix
15th June 2003 11:26 UTC
I wish to use the NSIS installer to move the folder containing the graphics and .exe to a place on the start menu
To move a folder:Rename "C:\Example" "$SMPROGRAMS"
Result: You moved the Folder "Example" to "C:\Windows\Start Menu\Programs".
Note: If the folder that you are moving to don't exist, you have to use
CreateDirectory instruction to create the folder.
More information here...and to create a shortcut to the .exe on the desktop
To create a shortcut:CreateShortcut "$DESKTOP\Shortcut Name.lnk" "$SMPROGRAMS\GameFolder\Graphics\FileName.exe"
Result: You created the shortcut "C:\Windows\Desktop\ShortcutName.lnk" with file target "C:\Windows\Start Menu\Programs\GameFolder\Graphics\FileName.exe".
More information here...