NSIS for VS.Net 05 and 03
I am currently using .nsi files to build an executable, which contains an .exe and some dlls. (header)
; NULLsoft Scriptable Install System
; make a single file to run
; software. Goal is to copy files to
; the temp directory, run them, then
; clean up completely afterward.
When i us the script for vs03, the .exe created executes perfectly. However, with vs05, the .exe created SUCKS!! The files are unpacked, but immediatley removed from the $Temp.
How do i use this with vs05.
Script in .nsi----
; NULLsoft Scriptable Install System
; make a single file to run
; software. Goal is to copy files to
; the temp directory, run them, then
; clean up completely afterward.
; use LZMA Solid compression
SetCompressor /solid lzma
; name of the installer (doesn't matter/never seen)
Name "AQS"
; hide nsis windows
SilentInstall silent
; set icon file
Icon "P:\AQS Projects\@QS Packages\AQS_auto.ico"
; set a name for the resulting executable
OutFile "WinFrameTest.exe"
; the installation directory
InstallDir "$TEMP\WinFrameTest"
; copy, run, delete
Section ""
; set output path to the installation directory.
SetOutPath "$INSTDIR"
; files to unpack
File "winTestbasic.exe" ; executable
File "IsummonYou.dll" ; required dll
File "IsummonMe.dll" ; required dll
; execute and wait for program to be closed
ExecWait '"$INSTDIR\WinFrameTest.exe"'
; change output path so we can delete folder and not just contents
SetOutPath "$TEMP"
; Delete unpacked files from hard drive
RMDir /r "$INSTDIR"
SectionEnd