Check for Previous Install
Previous Topic  Next Topic 

This action checks the target system for a previous install of your application and sets up virtual text variables as a result.  When searching for a previous install, InstallJammer uses the Application ID of your project to find them.


The following virtual text variables are set as a result of this action:


Note

Version 1.0 of InstallJammer only defined the <%PreviousInstallExists%> and <%PreviousInstallDir%> variables.  You should use a Virtual Text Exists Condition if you are unsure of whether the previous install virtual text you want exists.


If <%PreviousInstallExists%> is false, none of the rest of this virtual text is set.



<%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.


<%PreviousInstallIDs%>

This virtual text contains a list of all previous install IDs that have been installed for this application.


<%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.




Standard Properties 

See Standard Action Properties.