Get Previous Install Info
Previous Topic  Next Topic 

This action gets a specific set of install information based on a given Install ID.  Since a single application can have multiple installations on the same system, this action can be used to get specific information from a specific install.  You must first find the Install ID though.



Standard Properties 

See Standard Action Properties.


Advanced Properties


Application ID

The Application ID to read previous install information from.  This defaults to the current installer's <%ApplicationID%>, but this action can also be used to read install information from other installations.


Install ID

The install ID of the install whose information you want to get.


Virtual Text Prefix

A string to prefix to the beginning of each piece of information from the install registry.  This prefix will be used for each variable from the registry to add information to virtual text variables depending on what information is available.


The following virtual text variables are set as a result of this action (assuming that your Virual Text Prefix is PreviousInstall):


<%PreviousInstallApplicationID%>

The Application ID of the previously installed application.  This should match your own Application ID unless the previous install was an upgrade install.  In that case, the Upgrade Install ID should match your application ID.


<%PreviousInstallDate%>

The install date of the last install in clock seconds.  This can be formatted using the <%Date%> virtual text.


<%PreviousInstallCount%>

The number of previous installations found on the target system.  Only the last install, by date, will be used for this information.


<%PreviousInstallDir%>

The installation directory of the last install.


<%PreviousInstallDirExists%>

A convenience value that tells you whether or not the previous install dir still exists on the target system.


<%PreviousInstallExecutable%>

The full path of the previous install executable when it was run.


<%PreviousInstallExists%>

This value will be true if a previous install was found, or false if one was not found.


<%PreviousInstallID%>

The Install ID of the last install.  This is the ID that is generated everytime an installer is run, so this ID will change with each subsequent install.


<%PreviousInstallRealUser%>

The real username of the person who installed last.  This is the real username even if the user was running as root.


<%PreviousInstallSource%>

The directory where the previous installer was run from.


<%PreviousInstallUninstaller%>

The full path to the uninstaller of the last install.


<%PreviousInstallUpgradeID%>

The Upgrade Application ID of the last install.


<%PreviousInstallUser%>

The username of the person who installed last.


<%PreviousInstallVersion%>

The install version (1.0.1.0, etc...) of the last install.


<%PreviousInstallVersionString%>

The install version string (1.0a1, etc...) of the last install.


Note

Other variables can also be set if a developer has added information to the install registry through the Add Install Info action.  Any variable added through that action will also appear in virtual text as a result of this action.  For example:


If the Key Foo was added with the Value Bar, you would get the variable <%PreviousInstallFoo%> that would equal Bar.