Uninstall from control panel fails
Posted: Thu Sep 16, 2010 6:07 pm
Hello,
I've come across an interesting problem. When i install my application, from the run button in InstallAware or by double clicking the executable it runs fine. If double click the same executable at a later date, it goes through the prerequisites and asks me if i'd to uninstall, change, repair. If I choose uninstall it works great. If i install the same app/build using InstallAware or simply double clicking the EXE and then attemp to uninstall via control panel, it fails. First it goes through the prerequisites (expected) then it prompts me to change, remove, uninstall (expected) and then it asks me to "Please locate your original setup sources to continue operation" with a folder browser (unexpected). I browse to the location of the setup.exe and click ok. The dialog reverts back to the root directory tree. Not knowing what else to do, i click cancel. It gives me an error: Runtime error in setup script: Source File: <My main script> Line Number XXX Original setup sources required to complete operation, sources not found. The line which is cited is the close of the if Variable REMOVE Equals TRUE block. CLearly this block works just fine when run outside of the context of the control panel. I have to imagine the script itself is ok. Is there a setting somewhere that could be incorrect? Is there any way of working around the issue so that clients won't have to deal with it?
Thanks,
brian
offending section from script:
I've come across an interesting problem. When i install my application, from the run button in InstallAware or by double clicking the executable it runs fine. If double click the same executable at a later date, it goes through the prerequisites and asks me if i'd to uninstall, change, repair. If I choose uninstall it works great. If i install the same app/build using InstallAware or simply double clicking the EXE and then attemp to uninstall via control panel, it fails. First it goes through the prerequisites (expected) then it prompts me to change, remove, uninstall (expected) and then it asks me to "Please locate your original setup sources to continue operation" with a folder browser (unexpected). I browse to the location of the setup.exe and click ok. The dialog reverts back to the root directory tree. Not knowing what else to do, i click cancel. It gives me an error: Runtime error in setup script: Source File: <My main script> Line Number XXX Original setup sources required to complete operation, sources not found. The line which is cited is the close of the if Variable REMOVE Equals TRUE block. CLearly this block works just fine when run outside of the context of the control panel. I have to imagine the script itself is ok. Is there a setting somewhere that could be incorrect? Is there any way of working around the issue so that clients won't have to deal with it?
Thanks,
brian
offending section from script:
Code: Select all
[DEFINE REGION: Perform Uninstallation]
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Comment: TO-DO: Insert any additional uninstall commands here
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\WDMSTUB.sys to $ALLTEMPDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmnusb.sys to $ALLTEMPDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmnusb.inf to $ALLTEMPDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmngen.sys to $ALLTEMPDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmn1200.sys to $ALLTEMPDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmn0200.sys to $ALLTEMPDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmn0200.inf to $ALLTEMPDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmn0200.sys to $WINSYSDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmn1200.sys to $WINSYSDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmngen.sys to $WINSYSDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmnusb.sys to $WINSYSDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\WDMSTUB.sys to $WINSYSDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmnusb.inf to $WINSYSDIR$
Install Files C:\Users\Brian\Documents\BerlaCorp\installer-prereqs\Garmin USBDrivers_21\usb_drivers\grmn0200.inf to $WINSYSDIR$
Get Component LowLevelDataAccess Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: LowLevelDataAccessUnInstallAutogen
end
Get Component MidLevelDataAccess Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: MidLevelDataAccessUnInstallAutogen
end
Get Component Blackthorn Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: BlackthornUnInstallAutogen
end
Get Component VirtualEarth Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: VirtualEarthUnInstallAutogen
end
Get Component KayakoInterface Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: KayakoInterfaceUnInstallAutogen
end
Get Component Utils Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: UtilsUnInstallAutogen
end
Get Component PluginPackager Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: PluginPackagerUnInstallAutogen
end
Get Component UpgradeTool Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: UpgradeToolUnInstallAutogen
end
Get Component InitBlackthornInstaller Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: InitBlackthornInstallerUnInstallAutogen
end
Get Component HelpFileIndexer Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: HelpFileIndexerUnInstallAutogen
end
Get Component LicensingTool Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Include Script: LicensingToolUnInstallAutogen
end
if Variable ARCHITECTURE Equals X86
DIFx Uninstall x86 driver in folder $ALLTEMPDIR$\grmnusb.inf
DIFx Uninstall x86 driver in folder $ALLTEMPDIR$\grmn0200.inf
end
if Variable ARCHITECTURE Equals AMD64
DIFx Uninstall x64 driver in folder $ALLTEMPDIR$\grmnusb.inf
DIFx Uninstall x64 driver in folder $ALLTEMPDIR$\grmn0200.inf
end
if Variable ARCHITECTURE Equals IA64
DIFx Uninstall ia64 driver in folder $ALLTEMPDIR$\grmnusb.inf
DIFx Uninstall ia64 driver in folder $ALLTEMPDIR$\grmn0200.inf
end
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
else
<<Code Folding Region>>