Trying to use makensis on linux
I followed these "instructions" to get nsis working under linux (I know it's probably not supported, but it seems to be mostly working).
http://www.xdevsoftware.com/blog/pos...on-Linux-.aspx
I am getting a weird warning that I don't see when runing makensis under Windows though. Here's a snippet of my nsi file.
# Installer functions
Function .onInit
InitPluginsDir
!insertmacro IsUserAdmin $0
StrCpy $Administrator $0
${Select} $0
${Case} "1"
StrCpy $INSTDIR "$%PROGRAMFILES%\$(^Name)"
SetShellVarContext all
${Case} "0"
StrCpy $INSTDIR "$%USERPROFILE%\$(^Name)"
${EndSelect}
FunctionEnd
The warnings are:
unknown variable/constant "%PROGRAMFILES%\$(^Name)" detected, ignoring (/Project/installer.nsi:182)
unknown variable/constant "%USERPROFILE%\$(^Name)" detected, ignoring (/Project/installer.nsi:185)