I was wondering if this is a common issue. I did not see anything out there on this. Yesterday I had a perfect installer. The one I built yesterday still works perfect. However today I add a comment and it stops working properly complaining that it can not find the file directory. I close the project and do not save the changes then reopen it. I clean out the install file location and build it again with the same code it had when it was perfect. It was experiencing the same issue. Weird thing is that I run in debug mode using F8 from beginning to end and it works perfect, except for the uninstall command. It tries to install the software again. Windows uninstall successfully starts the uninstall process but gets stuck.
After setting everything up I use the Apply Install to install the program and the Apply Uninstall to uninstall the program. Is there something that I need to reset? During the project build process I have built the installer many times. This is the first time I have encountered this kind of issue. Attached is my full project code minus the built in and unmodified Application Runtime scripts.
Code: Select all
Comment: ==========================================================================
Comment: <copyright company="Company, Inc.">
Comment: Copyright (c) Company, Inc. All rights reserved.
Comment: </copyright>
Comment: <summary>
Comment: Written By: Someone
Comment: Date Written: 3/6/2014
Comment: Last Date Modified: 5/21/2014
Comment: Last Modified By: Someone
Comment: Purpose: This is the install file which will do the following:
Comment: * Locate and setup the database
Comment: * Ensure the following runtimes are installed and if not install them:
Comment: * Microsoft .NET Framework Client 4 (x32 or x64)
Comment: * Microsoft .NET Framework 4 (x32 or x64)
Comment: * Microsoft .NET Framework 4.5 (x32 or x64)
Comment: * Microsoft .NET Framework 4.51 (x32 or x64)
Comment: * Microsoft Windows Installer 3.1
Comment: * Install the Central Application
Comment: * Uninstall the Application
Comment: </summary>
[DEFINE REGION: Initialize Variables]
Set Variable TARGETDIR to C:\Program Files (x86)Set Variable SELECTEDSERVER to
Set Variable AVAILABLESERVERS to
Set Variable SQLUSER to
Set Variable SQLPASSWORD to
Set Variable SQLTEST to
Set Variable WINDOWS to TRUE
Set Variable SERVER to FALSE
Set Variable PREREQ to FALSE
Set Variable PRELIST to
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
Comment: Determine if Program has been installed already.
Does File Exist $TARGETDIR$\Company\Company\Program.exe (get result into variable MAINTENANCE)
<<Code Folding Region>>
Comment: If this is the first install of the program.
if Variable MAINTENANCE Equals FALSE
Comment: Ensure the computer being installed on is of the right type
[DEFINE REGION: Check Application Requirements]
Comment: Ensure the proper run times are installed
[DEFINE REGION: Check/Install Application Pre-Requisites]
[DEFINE REGION: Locate and install the database.]
Comment: Install Program
[DEFINE REGION: Install Program]
label: Welcome Dialog
Display Dialog: welcome, wait for dialog to return (modal)
if Variable WIZARD Equals CANCEL
Terminate Installation
end
Display Dialog: licensecheck, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
GoTo Label: Welcome Dialog
else
if Variable WIZARD Equals CANCEL
Terminate Installation
end
GoTo Label: Main Install
end
label: Main Install
Display Dialog: destination, wait for dialog to return (modal)
Get System Setting Windows NT Kernel (NT4, 2000, XP, 2003, Vista, 2008, 7, 2008 R2, 8, 2012) into ISNT
Get Folder Location System->Program Files Directory into PROGRAMFILES
Get Common Folder Location System->Program Files Directory into COMMONFILES
Get Common Folder Location Start Menu->Programs Group into SHORTCUTFILESALL
Get Folder Location Start Menu->Programs Group into SHORTCUTFILES
if Variable SHORTCUTFILESALL Equals
Set Variable SHORTCUTFILESALL to $SHORTCUTFILES$
end
Get Folder Location System->Desktop Directory into DESKTOPDIR
Get Folder Location System->Windows Directory into WINDIR
Get Folder Location System->System Directory into WINSYSDIR
Get Folder Location Taskbar->Quick Launch Directory into QUICKLAUNCHDIR
Get Folder Location WWW->WWWRoot into WWWROOTDIR
Comment: Prepare to install
Set Variable PROGRESSTEXT to Installing $TITLE$
Set Variable SUCCESS to
Set Variable LASTERROR to
if Variable ALLUSERS Equals TRUE
Set Variable SHORTCUTFOLDER to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Company App
else
Set Variable SHORTCUTFOLDER to $SHORTCUTFILES$\$STARTMENU$
end
Display Dialog: progress, use as progress dialog (non-modal)
[DEFINE REGION: Execute Installation]
Create Shortcut $SHORTCUTFOLDER$\Uninstall #TITLE# to $UNINSTALLLINK$
[OFFLINE CONTENT]
[DEFINE WEB MEDIA Sunkist Growers Central App]
Create Shortcut $SHORTCUTFOLDER$\Company to $TARGETDIR$\Company\Company\Program.exe
Create Shortcut $QUICKLAUNCHDIR$\Company to $TARGETDIR$\Company\Company\Program.exe, Pin to Taskbar
Install Files C:\users\Someone\Source\Workspace\Project\Binaries\de\*.* to $TARGETDIR$\Company\Company\de, include subfolders
Comment: Other Files...
Apply Install (get result into variable SUCCESS)
Set Variable REMOVEOLD to FALSE
<<Code Folding Region>>
<<Code Folding Region>>
else
[compiler if Variable BUILDMODE Equals PATCH]
Display Dialog: progress, use as progress dialog (non-modal)
Apply Patch (get result into variable SUCCESS)
Set Variable PROGRESS to 100
[compiler else]
Display Dialog: progress, use as progress dialog (non-modal)
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
Set Variable REMOVEOLD to TRUE
if Variable NEEDSUPGRADE Equals TRUE
GoTo Label: Welcome Dialog
end
[compiler end]
end
if Variable SUCCESS not Equals ERROR
if Variable REMOVEOLD Equals TRUE
Comment: Show the uninstall finished dialogue box.
else
if Variable SUCCESS not Equals CANCEL
Display Dialog: finish, wait for dialog to return (modal)
Set Variable PROGRESS to 100
if Variable RUNAPP Equals TRUE
Run Program $TARGETDIR$\Company\Company\Program.exe
end
else
MessageBox: Installation Canceled., The program has not been installed since the installation was canceled.
end
end
else
MessageBox: Unexpected Error!, Please notify the Company Research and Development department of the entire situation that surrounds this failed install.
end
Thanks
James