theblase
1st April 2010 09:23 UTC
Change component's installation path
I have two components in my installer. Is that possible to change their installation path between two fixed option in the MUI?
1. option - $DOCUMENTS
2. option - c:\Users\Public\.. (I don't know the variable's name)
Animaether
1st April 2010 18:15 UTC
yes
For the first section, use:
SetShellVarContext current
<write files to $DOCUMENTS here>
For the second section, use:
SetShellVarContext all
<write files to $DOCUMENTS here>
Make sure you set 'SetShellVarContext' back to what it was after the section is finished, in case you're extracting further files where the shell context matters.