Are parameters persited

Comments

3 comments

  • Avatar
    michiel

    Hi Robert,

    Installer parameters are persisted in the uninstaller automatically, so you don't need to use <setInstallerVariable> in that case. If you set the variable using <setInstallerVariable> then you do need to set persist=1. 

    Does the installer persist how it was invoked (which parameters) ?

    Could you explain what you do mean with "which parameters"

    Regards,

    Michiel

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Schwarz, Robert

    Does the installer persist how it was invoked (which parameters) ?

    If the installer defines two parameters (user, group) and is invoked on the commandline with 
    <installer_name>.run --user <MyUser> --group <MyGroup>

    Does the Upgrade installer have access to MyUSer| MyGroup parameter values provided during original install?? 

    When I Log the parameter values in my Upgrade installer (installType=Upgrade)
    both parameters have their default vales instead of the value provided by the user during the original install

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Robert,

    My apologies for the misunderstanding. Installer variables are only persisted for the uninstaller, not for the upgrade installer. To store information from the original install you could use the <iniFileSet> or <propertiesFileSet> in the first installation and then retrieve the information in the upgrade install with <iniFileGet> or <propertiesFileGet>.

    Regards,

    Michiel

     

    0
    Comment actions Permalink

Please sign in to leave a comment.