Variable REMOVE is missing

Got a problem you cannot solve? Try here.
Gordon
Posts: 8
Joined: Wed Dec 02, 2020 11:08 pm

Variable REMOVE is missing

Postby Gordon » Thu Feb 25, 2021 2:10 am

Hi , I cannot select the variable remove from MSI code?

When I attempt to to uninstall an application via Add / Remove it runs the InstallAware in installation mode.
The parameters appear to be passed correctly from Add / Remove.
REMOVE=TRUE MODIFY=FALSE
I do read in the commandline to a parameter if this affects it?

This is the entire Region contents
[DEFINE REGION: Perform Uninstallation]
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Set Variable PROGRESSTEXT to Uninstalling $TITLE$
Comment: TO-DO: Insert any additional uninstall commands here
Run Program C:\Program Files\Microsoft SQL Server\150\Tools\Binn>SqlLocaldb.exe delete myinstance (WAIT)
Comment: Run Program elevated under UAC C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\SQL2019\Setup.exe /QUIET /ACTION="unInstall" /FEATURES=SQL,Tools /INSTANCENAME="myinstance", startup in folder C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\SQL2019\ (WAIT)
Apply Uninstall (get result into variable SUCCESS)
Set Variable PROGRESS to 100
Display Dialog: finish_uninstall, wait for dialog to return (modal)
Terminate Installation
else

AND IN
~InstallAware Clipboard Data~
~Else~
~{58CC3D89-E974-4D30-9418-1BDA21C3FDE8}~
~Terminate Install~
~{50541A8B-F9DF-403D-8904-4C02D711C66C}~
~Display Dialog~
~{672890D0-CB1C-4E7D-BE99-590A4CE1ABD5}~
~finish_uninstall~
~WIZARD~
~TRUE~
~~
~TRUE~
~FALSE~
~Set Variable~
~{01985B42-82CC-4115-B5D4-B8964F7D012F}~
~PROGRESS~
~100~
~Apply Changes~
~{E18F5164-9781-4558-B29E-4E9ABA766001}~
~progress~
~SUCCESS~
~FALSE~
~TRUE~
~Run Program As~
~{A8D54CCD-0A1A-427C-8C32-B733E4E06DFE}~
~C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\SQL2019\Setup.exe ~
~C:\Program Files\Microsoft SQL Server\150\Setup Bootstrap\SQL2019\~
~/QUIET /ACTION="unInstall" /FEATURES=SQL,Tools /INSTANCENAME="myinstance"~
~1~
~$MYAH_UACEX$~
~~
~~
~~
~TRUE~
~~
~Run Program~
~{B95AEB13-1A3B-4DA4-BE71-922FC8A161AC}~
~C:\Program Files\Microsoft SQL Server\150\Tools\Binn>SqlLocaldb.exe ~
~TRUE~
~delete myinstance~
~TRUE~
~~
~Comment~
~{D98122DC-633A-4A8F-AEF2-20A3E6D6DD3A}~
~TO-DO: Insert any additional uninstall commands here~
~Set Variable~
~{8FD4C597-49B9-4913-B690-F424CA751AEC}~
~PROGRESSTEXT~
~Uninstalling $TITLE$~
~Comment~
~{7419D1B1-2E5A-4B28-AFB0-FDA9637584BA}~
~Uninstall product~
~If~
~{CBD86EC2-057A-4581-A003-01237749D5D2}~
~REMOVE~
~0~
~TRUE~
~FALSE~
~Code Folding Region~
~{41142C54-BC4D-43B1-AD70-AC831D28DEC4}~
~TRUE~
~Perform Uninstallation~

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Variable REMOVE is missing

Postby FrancescoT » Thu Feb 25, 2021 12:48 pm

You may check the content of the "CMDLINE" pre-defined variable.
CMDLINE: The command line string passed to the installation program
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 50 guests