Major Upgrade and Uninstall?

Mar 11, 2010 at 3:57 PM

I currently use Install Checks which allows the /x pararmter to work.

I also would like the MSI's to "major upgrade" from one release to the next, and this seems to mean that I have to disable the install checks so the dotNetInstaller always sees the components as not installed.

But removing the checks disables /x....

Is there any way I can have both scenarios working?

Thanks,

Coordinator
Mar 11, 2010 at 5:41 PM

First, I'd like to ask you to upgrade to a 1.9 beta and see if the same behavior is still occurring. I fixed a number of related bugs.

An installed check with a "version" comparion should work for what you're trying to do. If it doesn't, please post your config file and maybe describe what you see in what setup.

Mar 12, 2010 at 9:05 AM

I'm using 1.9.43294.0

If the msi is already installed, the dotnetinstaller switches to uninstall and begins an uninstall...

So I took out the check, and now it attempts the install (and the msi perfoms a major upgrade) - hooray!

But like I said, the lack of install check seems to break the /x functionality...

config.xml:

<?xml version="1.0" encoding="utf-8"?>
<configurations lcid_type="UserExe" show_language_selector="False" language_selector_title="" language_selector_ok="OK" language_selector_cancel="Cancel" configuration_no_match_message="" ui_level="full" fileversion="1.0.0.0" productversion="1.0.0" log_enabled="True" log_file="#TEMPPATH\VisualCOBOL_install_log.txt">
  <schema version="1.9.43294.0" generator="dotNetInstaller InstallerEditor" />
  <configuration dialog_caption="Visual COBOL Installer" dialog_message="In order to install Visual COBOL you must install these components:" dialog_message_uninstall="Select components to uninstall:" dialog_bitmap="" skip_caption="Skip" install_caption="Install" uninstall_caption="Uninstall" cancel_caption="Cancel" status_installed="(Installed)" status_notinstalled="(Not Installed)" failed_exec_command_continue="Failed to install %s." installation_completed="Visual COBOL installed successfully." installation_none="Visual COBOL is already installed." installing_component_wait="Installing %s. Please wait ..." reboot_required="To continue the installation you must restart your computer. Restart now?" must_reboot_required="True" dialog_otherinfo_caption="Micro Focus International plc" dialog_otherinfo_link="http://www.microfocus.com" complete_command="" complete_command_silent="" complete_command_basic="" wait_for_complete_command="False" auto_close_if_installed="True" auto_close_on_error="True" allow_continue_on_error="False" dialog_show_installed="True" dialog_show_uninstalled="False" dialog_show_required="True" cab_dialog_message="%s" cab_cancelled_message="" cab_dialog_caption="Extracting, please wait..." cab_path="#SYSTEMWINDOWSPATH\Installer\#GUID" cab_path_autodelete="False" dialog_position="" dialog_components_list_position="" dialog_message_position="" dialog_bitmap_position="0,0,110,210" dialog_otherinfo_link_position="" dialog_osinfo_position="0,0,1,1" dialog_install_button_position="" dialog_cancel_button_position="" dialog_skip_button_position="" auto_start="True" auto_continue_on_reboot="True" reboot_cmd="" type="install" lcid_filter="1033" language_id="1033" language="" os_filter_greater="82" os_filter_smaller="" processor_architecture_filter="x86,x64" supports_install="True" supports_uninstall="True">
    <component package="#CABPATH\VisualCOBOLx86.msi" cmdparameters="/l*vx %temp%\VisualCOBOLx86_install_log.txt" cmdparameters_silent="/qn /l*vx %temp%\VisualCOBOLx86_install_log.txt" cmdparameters_basic="/qb- /l*vx %temp%\VisualCOBOLx86_install_log.txt" uninstall_cmdparameters="/qb- /l*vx %temp%\VisualCOBOLx86_uninstall_log.txt" uninstall_cmdparameters_silent="/qn /l*vx %temp%\VisualCOBOLx86_uninstall_log.txt" uninstall_cmdparameters_basic="/qb- /l*vx %temp%\VisualCOBOLx86_uninstall_log.txt" id="VisualCOBOLx86.msi" display_name="Visual COBOL" os_filter_greater="" os_filter_smaller="" os_filter_lcid="" type="msi" installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required="" must_reboot_required="True" failed_exec_command_continue="" allow_continue_on_error="True" required="True" note="" processor_architecture_filter="x86" status_installed="" status_notinstalled="" supports_install="True" supports_uninstall="True">
      <!-- <installedcheck id="{98F7F508-0334-45B0-A968-46CBF371C1AF}" id_type="upgradecode" propertyname="VersionString" propertyvalue="1.0.0" comparison="version" type="check_product" description="Installed Check" /> -->
    </component>
  </configuration>
</configurations> 

Thanks for any assistance,

 

Coordinator
Mar 12, 2010 at 10:13 PM

Can you please also attach a log from a /x run when your product is installed (/log /logfile uninstall.log /x). Thx.

Mar 16, 2010 at 10:20 AM

2010-03-16 10:19:15 -------------------------------------------------------------------
2010-03-16 10:19:15 dotNetInstaller (DNI) started, version 1.9.43294.0
2010-03-16 10:19:15 Copyright (c) DevAge, Vestris Inc. & Contributors
2010-03-16 10:19:15 Operating system: Windows 7
2010-03-16 10:19:15 Sequence: uninstall
2010-03-16 10:19:15 -------------------------------------------------------------------
2010-03-16 10:19:15 Loaded configuration from embedded resource 'RES_CONFIGURATION'
2010-03-16 10:19:15 Loaded schema: version=1.9.43294.0, generator=dotNetInstaller InstallerEditor
2010-03-16 10:19:15 Read file attribute: name=ProductName, value=Micro Focus Visual COBOL
2010-03-16 10:19:15 Read file attribute: name=CompanyName, value=Micro Focus
2010-03-16 10:19:15 Read file attribute: name=LegalCopyright, value=Copyright (C) 1984-2010 Micro Focus (IP) Limited.
2010-03-16 10:19:15 Read file attribute: name=FileDescription, value=Visual COBOL Installer
2010-03-16 10:19:15 Read 4 file attribute(s)
2010-03-16 10:19:15 Loaded lmsetup.msi, display_name='License Manager', pa=x86,x64
2010-03-16 10:19:15 Loaded VisualCOBOLx86.msi, display_name='Visual COBOL', pa=x86
2010-03-16 10:19:15 Loaded VisualCOBOLx64.msi, display_name='Visual COBOL', pa=x64
2010-03-16 10:19:15 Loaded 3 component(s) from configuration type=1 (lcid_filter=1033, os_filter_greater=82, os_filter_smaller=, processor_architecture_filter=x86,x64)
2010-03-16 10:19:15 Loaded lmsetup.msi, display_name='License Manager', pa=x86,x64
2010-03-16 10:19:15 Loaded VisualCOBOLx86.msi, display_name='Visual COBOL', pa=x86
2010-03-16 10:19:15 Loaded VisualCOBOLx64.msi, display_name='Visual COBOL', pa=x64
2010-03-16 10:19:15 Loaded 3 component(s) from configuration type=1 (lcid_filter=!1033, os_filter_greater=82, os_filter_smaller=, processor_architecture_filter=x86,x64)
2010-03-16 10:19:15 --- Read 2 configuration(s)
2010-03-16 10:19:15 -- Loading supported configurations (lcid=1033)
2010-03-16 10:19:15 -- Loading supported configurations (lcid=1033)
2010-03-16 10:19:15 -- Loading supported components (lcid=1033)
2010-03-16 10:19:15 -- lmsetup.msi (display_name='License Manager', os_filter_lcid=, os_filter_greater=, os_filter_smaller=, processor_architecture_filter=x86,x64): LOADED
2010-03-16 10:19:15 -- VisualCOBOLx86.msi (display_name='Visual COBOL', os_filter_lcid=, os_filter_greater=, os_filter_smaller=, processor_architecture_filter=x86): SKIPPED
2010-03-16 10:19:15 -- VisualCOBOLx64.msi (display_name='Visual COBOL', os_filter_lcid=, os_filter_greater=, os_filter_smaller=, processor_architecture_filter=x64): LOADED
2010-03-16 10:19:15 --- Loaded 2 supported component(s)
2010-03-16 10:19:15 -- VisualCOBOLx64.msi (Visual COBOL): NOT INSTALLED
2010-03-16 10:19:15 -- lmsetup.msi (License Manager): NOT INSTALLED
2010-03-16 10:19:15 dotNetInstaller finished, return code=0

Jun 17, 2010 at 1:32 PM
hello, just wanna ask if there is any solution for this problem now or it is fixed in dotnet installer?
Coordinator
Jun 17, 2010 at 2:06 PM

Sorry, I missed this thread.

I assume you removed the commented out check in the configuration xml above for the upgrade code {98F7F508-0334-45B0-A968-46CBF371C1AF}, and that you double-checked that the upgrade code is correct and that indeed it's the upgrade code, not the product code, etc.

We can do two things:

  • Get dotNetInstaller source and debug through the installed check that fetches the product by upgrade code. Clearly it thinks that your product is not installed.
  • Put the MSI and your configuration.xml somewhere for me to download (slower results :).

Thx
dB.