Page 1 of 1

Uninstall issue

Posted: Fri Dec 21, 2012 4:11 am
by QooScho
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

Re: Uninstall issue

Posted: Fri Dec 21, 2012 11:00 am
by FrancescoT
Dear Hans,

should also be proceeded and the "Component: MyTool Client\PrinterDriver" should also be "True" while uninstalling ?

Yes it is.

I just tried with a sample and the selection state of a component, it is stored correctly with the Install / Unistall sequence.

If you want I can post the sample I used or if you prefer, you could post a minimal project that replicate your issue and I try will to verify it.

Regards.