Uninstall parameters are not used!

Feb 15, 2010 at 3:09 PM

Hi!

I created a single Executable Package using the tutorial. In there I have an msi and a msi component that supports both install and uninstall. What I'm trying to now is to run it without any user interaction. I have specified set cmdparameter_basic for component to /qb- and when I run setup.exe /i /qb it installs without user interaction. But when I set uninstall_cmdparameter_basic to /qb- and run setup.exe /x /qb it still asks me "Are you sure you want to uninstall this product?". How do I get rid of this?

 

If I set uninstall_cmdparameter_basic, uninstall_cmdparameter_silent and uninstall_cmdparameter to /qb- just be sure so I'm not running with the wrong switch I still get the queastion!

When monitoring the msiexec process with SysInternals Proccess Monitor I can see that there is no extra parameters sent to the msiexec when I run setup.exe /x /qb although I have specified them in the component config as explained earlier! But when I run setup.exe /i /qb I can see that /qb- is sent to the msiexec

Also, when I manually uninstall the msi using msiexec /x setup.msi /qb- I dont get the question "Are you sure you want to uninstall this product?"

 

This has got to be a bug in the code!

 

Any suggenstions!

Coordinator
Feb 15, 2010 at 3:40 PM

Can you please post a log file for uninstall here? setup.exe /x /log /logfile uninstall.log. Thx.

Feb 16, 2010 at 7:13 AM

Hi!

Thanks a lot for the reply. Here the log file..

I set both uninstall_cmdparameter_basic, uninstall_cmdparameter_silent and uninstall_cmdparameter to /qb-

I run the command "Application_Setup.exe" /x /qb /Log /LogFile C:\msilog.txt.

 

Here's what I got:

-----------------------------------START msilog.txt-----------------------------------------

2010-02-16 08:51:58    -------------------------------------------------------------------
2010-02-16 08:51:58    dotNetInstaller (DNI) started, version 1.8.7120.0
2010-02-16 08:51:58    Copyright (c) DevAge, Vestris Inc. & Contributors
2010-02-16 08:51:58    Operating system: Windows Vista Sp2
2010-02-16 08:51:58    Sequence: uninstall
2010-02-16 08:51:58    -------------------------------------------------------------------
2010-02-16 08:51:58    Loaded configuration from embedded resource 'RES_CONFIGURATION'
2010-02-16 08:51:58    Loaded schema: version=1.8.7120.0, generator=dotNetInstaller InstallerEditor
2010-02-16 08:51:58    Loaded 'registry' installed check 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\SP'
2010-02-16 08:51:58    Read 'embedfile', source=C:\Data\_Working Area\Application Installer - Embed\SupportFiles\dotNet2.0_SP2_x86\NetFx20SP2_x86.exe, target=C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}\SupportFiles\dotNet2.0_SP2_x86\NetFx20SP2_x86.exe
2010-02-16 08:51:58    Loaded Microsoft .NET Framework 2.0 SP2 (x86), display_name='Microsoft .NET Framework 2.0 SP2 (x86)', pa=x86, os=/102
2010-02-16 08:51:58    Loaded 'registry' installed check 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\SP'
2010-02-16 08:51:58    Read 'embedfile', source=C:\Data\_Working Area\Application Installer - Embed\SupportFiles\dotNet2.0_SP2_x64\NetFx20SP2_x64.exe, target=C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}\SupportFiles\dotNet2.0_SP2_x64\NetFx20SP2_x64.exe
2010-02-16 08:51:58    Loaded Microsoft .NET Framework 2.0 SP2 (x64), display_name='Microsoft .NET Framework 2.0 SP2 (x64)', pa=x64, os=/102
2010-02-16 08:51:58    Loaded 'registry' installed check 'HKEY_LOCAL_MACHINE\SOFTWARE\Application Reg'
2010-02-16 08:51:58    Read 'embedfile', source=C:\Data\_Working Area\Application Installer - Embed\Application_Setup.msi, target=C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}\Application_Setup.msi
2010-02-16 08:51:58    Loaded Application_Setup, display_name='Application_Setup.msi'
2010-02-16 08:51:58    Loaded 3 component(s) from configuration type=1 (lcid_filter=, os_filter_greater=81, os_filter_smaller=, processor_architecture_filter=x86,x64)
2010-02-16 08:51:58    --- Read 1 configuration(s)
2010-02-16 08:51:58    -- Loading supported configurations (lcid=1033)
2010-02-16 08:51:58    -- Loading supported configurations (lcid=1033)
2010-02-16 08:51:58    -- Loading supported components (lcid=1033)
2010-02-16 08:51:58    -- Microsoft .NET Framework 2.0 SP2 (x86) (display_name='Microsoft .NET Framework 2.0 SP2 (x86)', os_filter_lcid=, os_filter_greater=, os_filter_smaller=102, processor_architecture_filter=x86): SKIPPED
2010-02-16 08:51:58    -- Microsoft .NET Framework 2.0 SP2 (x64) (display_name='Microsoft .NET Framework 2.0 SP2 (x64)', os_filter_lcid=, os_filter_greater=, os_filter_smaller=102, processor_architecture_filter=x64): SKIPPED
2010-02-16 08:51:58    -- Application_Setup (display_name='Application_Setup.msi', os_filter_lcid=, os_filter_greater=, os_filter_smaller=, processor_architecture_filter=): LOADED
2010-02-16 08:51:58    --- Loaded 1 supported component(s)
2010-02-16 08:51:58    Reading Registry: SOFTWARE\Application Reg
2010-02-16 08:51:58    Opening 64-bit registry view (KEY_WOW64_64KEY)
2010-02-16 08:51:58    Registry key found: SOFTWARE\Application Reg
2010-02-16 08:51:58    Registry value: C:\ProgramData\Application\installed.txt
2010-02-16 08:51:58    -- Application_Setup (Application_Setup.msi): INSTALLED
2010-02-16 08:51:58    Silent mode: automatically starting uninstall
2010-02-16 08:51:58    Extracting embedded files for component '*': NO FILES EMBEDDED
2010-02-16 08:51:58    -- Loading supported components (lcid=1033)
2010-02-16 08:51:58    -- Microsoft .NET Framework 2.0 SP2 (x86) (display_name='Microsoft .NET Framework 2.0 SP2 (x86)', os_filter_lcid=, os_filter_greater=, os_filter_smaller=102, processor_architecture_filter=x86): SKIPPED
2010-02-16 08:51:58    -- Microsoft .NET Framework 2.0 SP2 (x64) (display_name='Microsoft .NET Framework 2.0 SP2 (x64)', os_filter_lcid=, os_filter_greater=, os_filter_smaller=102, processor_architecture_filter=x64): SKIPPED
2010-02-16 08:51:58    -- Application_Setup (display_name='Application_Setup.msi', os_filter_lcid=, os_filter_greater=, os_filter_smaller=, processor_architecture_filter=): LOADED
2010-02-16 08:51:58    --- Loaded 1 supported component(s)
2010-02-16 08:51:58    --- Component 'Application_Setup' (Application_Setup.msi): EXECUTING
2010-02-16 08:51:58    Extracting embedded files for component 'Application_Setup': 1 CAB(s)
2010-02-16 08:51:58    Resolved CAB path 'C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}' for component 'APPLICATION_SETUP'
2010-02-16 08:51:58    Extracting 'APPLICATION_SETUP_1.CAB' for component 'APPLICATION_SETUP'
2010-02-16 08:51:58    Extracting: C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}\Application_Setup.msi
2010-02-16 08:51:58    Done: C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}\Application_Setup.msi
2010-02-16 08:51:59    Executing: msiexec /x "C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}\Application_Setup.msi"
2010-02-16 08:52:04    --- Component 'Application_Setup (Application_Setup.msi): DIALOG CLOSED
2010-02-16 08:52:04    *** Component 'Application_Setup' (Application_Setup.msi): SUCCESS
2010-02-16 08:52:04    Deleting temporary folder: C:\Users\vafe\AppData\Local\Temp\{C1B2FBC4-286A-44C0-8140-A3EF7CF33C3A}
2010-02-16 08:52:04    dotNetInstaller finished, return code=0

-----------------------END------------------------------------------------

As I marked above, you see that it runs in silent mode, but later on doesn't send any extra parameters to msiexec!

Coordinator
Feb 16, 2010 at 4:40 PM

Confirmed bug. Fixed in build 1.9.11509.0, please let me know if that works for you.

Feb 19, 2010 at 7:48 AM

Hey!

I works like a charm now.

Thanks a lot!