Variables in UNINSTALL
Is it possible to use variables (besides $0 .. $9 and $R0 .. $R9) in the Uninstall Section?
Thanks,
Yves
Archive: Variables in UNINSTALL
Variables in UNINSTALL
Is it possible to use variables (besides $0 .. $9 and $R0 .. $R9) in the Uninstall Section?
Thanks,
Yves
Yes, is possible.
Originally posted by Joel
Yes, is possible.
OutFile "poop.exe"
>Name "Poop"
>Section -poop
WriteUninstaller "$EXEDIR\\unpoop.exe"
>SectionEnd
Section "Uninstall"
StrCpy $0 "poop"
DetailPrint "Yes, we are in Windows tring this $0"
DetailPrint "Now you can unpoop me, bye bye"
>SectionEnd
>
Re: Variables in UNINSTALL
Originally posted by HSorgYvesOF course you can use them, but they will NOT contain the data they contained during installation. (Similarly, $INSTDIR will NOT contain the installation directory. In the uninstaller $INSTDIR contains the directory where uninstall.exe is located.)
Is it possible to use variables (besides $0 .. $9 and $R0 .. $R9) in the Uninstall Section?
Thanks,
Yves
Thanks for your quick answers. If I use WriteINIStr, will it use the folder set by SetOutPath or do I need to specify it in each line?
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.13
Doesn't mention SetOutPath, so yeah you need to supply the full path.