Page 1 of 1
I prefer to provide an uninstall option only
Posted: Tue Oct 06, 2009 4:30 am
by alibaba
I read in the manual that I can specify this on the Dialogs Page. But unfortunatly I cannot found the option in User Interface > Dialogs .
I have InstallAware 9 Studio.
Can I change this maintenance behaviour somehow in the Design or MSICode View?
Posted: Wed Oct 07, 2009 3:18 am
by eugen.cocalea
One of the ways you could do this is to modify the dialogs / logic so the user is not prompted to choose between change and remove. Also, modify the registry for Add/Remove Programs entry, adding the NoModify / NoRepair entries.
Posted: Wed Oct 07, 2009 8:22 am
by alibaba
Thank you eugen, my friend.
I tried but it didn't help...I added the entries
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
in
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\<myApp>]
I now tried the installshield way: Uninstall Shortcut that points to msiexec with argument /X $PRODUCTCODE$ but then the source is not found.
I will try further...
Solution
Posted: Thu Oct 08, 2009 2:15 am
by alibaba
I now created a new project for my product and selected in the project wizard the option "I prefer to provide an uninstall option only".
I got the code for maintenance:
label: Maintenance
Comment: Maintenance Install/Uninstall
Set Variable UNINSTALL to YES
MessageBox: $TITLE$ Uninstall, Are you sure you want to uninstall the selected application and all of its components?
if Variable UNINSTALL Equals NO
Terminate Installation
else
Set Variable REMOVE to TRUE
end
I pasted this code in my standard project and now it works as desired.

Would be easier if you could choose this option also if the project wizard is already finished.