Question about pathing
Ok, one more question then I'm good to go.
Can I store the path to an .INI file in a global variable since it's just a text string?
Example:
Section "Parse_Registry"
Var /GLOBAL machid
Var /GLOBAL configfile
; parse registry information to determine if MyProg is already installed
ReadRegStr $configfile HKLM "System\ControlSet001\Control\Session Manager\Environment" "EIDMS"
ReadRegStr $machid HKLM "System\ControlSet001\Control\Session Manager\Environment" "MACHID"
${If} $0 == ""
MessageBox MB_YESNOCANCEL "C:\MyProg has not been created. Would you like to create it now?"
${Else}
MessageBox MB_YESNOCANCEL "A existing installation of MyProg has been located. Read the existing settings for this workstation?"
ReadINIStr $0 "$configfile" "station$machid" "ViewServerId"
DetailPrint "$0"
${EndIf}
SectionEnd
Is this legal? Also, would it make more sense to store all the .INI settings in an array?