Uninstall issue
Posted: Fri Dec 21, 2012 4:11 am
Hello,
in my setup I have the code below:
If Setup Type is Complete the component "MyTool Client\PrinterDriver" is selected. The printer driver will be also installed.
This works fine.
The problem is and this is what I do not understand.
If I do a uninstall of this product. The printer driver will not be removed If the code is like:
Get Component MyTool Client\PrinterDriver Selection State into Variable SELECTED
MessageBox: Uninstall printert driver, Die var selectd ist $SELECTED$
if Variable SELECTED Equals TRUE
..
The message box always tells "False" and the if statement will not work, so the driver will not be removed.
But why?
When you do the Uninstall the section
if Variable COMPLETE Equals TRUE
Select Component: MyTool Client\PrinterDriver
Select Component: MyTool Client
end
should also be proceeded and the "Component: MyTool Client\PrinterDriver" should also be "True" while uninstalling ?
If I change the code to:
if Variable COMPLETE Equals TRUE
..
then the driver will be removed.
Any idea?
---------------------------------------------------------------------------------------------------------------
if Variable MINIMUM Equals TRUE
Deselect Component: MyTool Client\PrinterDriver
else
if Variable COMPLETE Equals TRUE
Select Component: MyTool Client\PrinterDriver
Select Component: MyTool Client
end
end
...
[DEFINE REGION: Perform Uninstallation]
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Comment: TO-DO: Insert any additional uninstall commands here
Set Variable PROGRESSTEXT to Uninstalling $TITLE$
Comment: uninstall printer driver
Comment: Get Component MyTool Client\PrinterDriver Selection State into Variable SELECTED //will not work!!
Comment: MessageBox: Uninstall printert driver, Die var selectd ist $SELECTED$ //always False
Comment: if Variable SELECTED Equals TRUE
if Variable COMPLETE Equals TRUE //this works !!
Comment: MessageBox: Uninstall printer driver, Uninstall printer driver qoodary ps
Run Program rundll32.exe printui.dll, PrintUIEntry /dl /n "Qoodary PS" (WAIT)
end
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
else
..
Thanks a lot for help
Hans
in my setup I have the code below:
If Setup Type is Complete the component "MyTool Client\PrinterDriver" is selected. The printer driver will be also installed.
This works fine.
The problem is and this is what I do not understand.
If I do a uninstall of this product. The printer driver will not be removed If the code is like:
Get Component MyTool Client\PrinterDriver Selection State into Variable SELECTED
MessageBox: Uninstall printert driver, Die var selectd ist $SELECTED$
if Variable SELECTED Equals TRUE
..
The message box always tells "False" and the if statement will not work, so the driver will not be removed.
But why?
When you do the Uninstall the section
if Variable COMPLETE Equals TRUE
Select Component: MyTool Client\PrinterDriver
Select Component: MyTool Client
end
should also be proceeded and the "Component: MyTool Client\PrinterDriver" should also be "True" while uninstalling ?
If I change the code to:
if Variable COMPLETE Equals TRUE
..
then the driver will be removed.
Any idea?
---------------------------------------------------------------------------------------------------------------
if Variable MINIMUM Equals TRUE
Deselect Component: MyTool Client\PrinterDriver
else
if Variable COMPLETE Equals TRUE
Select Component: MyTool Client\PrinterDriver
Select Component: MyTool Client
end
end
...
[DEFINE REGION: Perform Uninstallation]
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Comment: TO-DO: Insert any additional uninstall commands here
Set Variable PROGRESSTEXT to Uninstalling $TITLE$
Comment: uninstall printer driver
Comment: Get Component MyTool Client\PrinterDriver Selection State into Variable SELECTED //will not work!!
Comment: MessageBox: Uninstall printert driver, Die var selectd ist $SELECTED$ //always False
Comment: if Variable SELECTED Equals TRUE
if Variable COMPLETE Equals TRUE //this works !!
Comment: MessageBox: Uninstall printer driver, Uninstall printer driver qoodary ps
Run Program rundll32.exe printui.dll, PrintUIEntry /dl /n "Qoodary PS" (WAIT)
end
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
else
..
Thanks a lot for help
Hans