Problem with installing the WindowsInstaller4.5,the PowerShell1.0 (standalone)

Nov 10, 2011 at 7:03 AM
Edited Nov 10, 2011 at 7:06 AM

Hi! Could you help me to treat DNI from sending to me the failed_exec_command_continue  message after installing the WindowsInstaller4.5 and PowerShell 1.0? It's strange to me that if the installing of WindowsInstaller 4.5 was completed successfully anyway DNI is sending a message that it is not like this. then i check the version of msi.dll  and it's 4.5 ... May be it is something wrong in my code..

 

<component command="&quot;#CABPATH\WindowsInstaller45_WindowsXP-KB942288-v3-x86.exe&quot; /quiet /norestart"
 command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic=""
 returncodes_success="ERROR_SUCCESS_REBOOT_REQUIRED,ERROR_SUCCESS
" returncodes_reboot=""
id="WindowsInstaller45_WindowsXP-KB942288-v3-x86
" display_name="Windows Installer 4.5 (WindowsXP-x86)"
uninstall_display_name
="" os_filter="" os_filter_min="winXP" os_filter_max="winXPMax" os_filter_lcid="" type="cmd"
 installcompletemessage="" uninstallcompletemessage="" mustreboot="False" reboot_required=""
must_reboot_required="False
" failed_exec_command_continue="" allow_continue_on_error="True"
default_continue_on_error="False" required_install="False" required_uninstall="False" selected_install="True"
selected_uninstall="False" note="" processor_architecture_filter="x86" status_installed="" status_notinstalled=""
 supports_install="True" supports_uninstall="False" show_progress_dialog="True" show_cab_dialog="False"> <installedcheck filename="#SYSTEMPATH\msi.dll" fileversion="4.5.0.0" comparison="version" defaultvalue="False"
 type="check_file" description="Installed Check" /> <embedfile sourcefilepath="#APPPATH\SupportFiles\WindowsInstaller45_WindowsXP-KB942288-v3-x86.exe"
 targetfilepath="#CABPATH\WindowsInstaller45_WindowsXP-KB942288-v3-x86.exe" /> </component> <component command="&quot;#CABPATH\PowerShell10_WindowsXP-KB926140-v5-x86-RUS.exe&quot; &quot;/quiet /norestart&quot;"
 command_silent="" command_basic="" uninstall_command="" uninstall_command_silent="" uninstall_command_basic=""
returncodes_success="
" returncodes_reboot="" id="PowerShell10_WindowsXP-KB926140-x86"
display_name="PowerShell 1.0 (WindowsXP-x86)" uninstall_display_name="" os_filter="" os_filter_min="winXP"
os_filter_max="winXPMax" os_filter_lcid="" type="cmd" installcompletemessage="" uninstallcompletemessage=""
mustreboot="False" reboot_required="" must_reboot_required="False" failed_exec_command_continue=""
allow_continue_on_error="True
" default_continue_on_error="False" required_install="False" required_uninstall="False"
selected_install="True" selected_uninstall="False" note="" processor_architecture_filter="x86" status_installed=""
status_notinstalled="
" supports_install="True" supports_uninstall="False" show_progress_dialog="True"
show_cab_dialog
="False"> <installedcheck path="SOFTWARE\Microsoft\PowerShell\1" fieldname="Install" fieldvalue="1" defaultvalue="False"
fieldtype="REG_DWORD" comparison="match" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE" type="check_registry_value"
description="Installed Check" /> <embedfile sourcefilepath="#APPPATH\SupportFiles\PowerShell10_WindowsXP-KB926140-v5-x86-RUS.exe"
targetfilepath="#CABPATH\PowerShell10_WindowsXP-KB926140-v5-x86-RUS.exe" /> </component>

I do not want to restart the system after installing all components. Thank you!

Coordinator
Nov 10, 2011 at 9:33 PM

Gather the log from this installation with /log /logfile install.log. The log should have an explanation, such as a return code.

Nov 13, 2011 at 2:31 PM

I used the /log  parameter in command line but the logfile had not been created. Like 

&quot;#CABPATH\WindowsInstaller45_WindowsXP-KB942288-v3-x86.exe&quot; /quiet /norestart /log:"logfile.txt"..
Coordinator
Nov 14, 2011 at 12:38 AM

You're inventing syntax, the command line parameters are a bit strange in DNI, due to history. It's what I said /log /logfile install.log, not what you wrote.

Nov 15, 2011 at 8:32 AM

Do you mean the DNI logging? I wanted to see the windows installer's logfile that is why i am using /log:"logfile.txt" - it's special syntax for Windows Installer logging.

In the dotneinstaller's log there is written:

Error executing component 'WindowsInstaller45_WindowsXP-KB942288-v3-x86' (Windows Installer 4.5 (WindowsXP-x86)),
return code is not in 'ERROR_SUCCESS_REBOOT_REQUIRED,ERROR_SUCCESS': 0xf0f6

But I still don't know what happened.

Nov 15, 2011 at 8:38 AM
Edited Nov 15, 2011 at 10:00 AM

Oh, i am stupid. I am looking for the logfile in the apppath. I changed the WI launch parameters to "#CABPATH\WindowsInstaller45_WindowsXP-KB942288-v3-x86.exe" /quiet /norestart /log:"#APPPATH\WI_log.txt". I have a logfile at last :)

The redistributable was installed. And DNI is still sending an error. How to customize the  returncodes_success node in the configuration file?

[WI_log.txt]
0.875: ================================================================================
0.875: 2011/11/15 14:40:43.828 (local)
0.890: c:\99a327bd4727ac4df1ba\UPDATE\update.exe (version 6.3.13.0)
0.890: Hotfix started with following command line: /quiet /norestart /log:C:\distr\setup\WI_log.txt 
0.906: In Function GetReleaseSet, line 1240, RegQueryValueEx failed with error 0x2
2.484: In Function TestVolatileFlag, line 11825, RegOpenKeyEx failed with error 0x2
2.484: In Function TestVolatileFlag, line 11857, RegOpenKeyEx failed with error 0x2
2.484: DoInstallation: CleanPFR failed: 0x2 
2.500: In Function GetReleaseSet, line 1240, RegQueryValueEx failed with error 0x2
2.500: SetProductTypes: InfProductBuildType=BuildType.Sel
2.500: SetAltOsLoaderPath: No section uses DirId 65701; done.
2.609: DoInstallation: FetchSourceURL for c:\99a327bd4727ac4df1ba\update\update_SP3QFE.inf failed
2.625: CreateUninstall = 1,Directory = C:\WINDOWS\$NtUninstallKB942288-v3$ 
2.625: LoadFileQueues: UpdSpGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
2.640: BuildCabinetManifest: update.url absent
2.640: Starting AnalyzeComponents
2.640: AnalyzePhaseZero used 0 ticks
2.640: No c:\windows\INF\updtblk.inf file.
2.640: OEM file scan used 0 ticks
2.922: AnalyzePhaseOne: used 282 ticks
2.922: AnalyzeComponents: Hotpatch analysis disabled; skipping.
2.922: AnalyzeComponents: Hotpatching is disabled.
2.922: Persisted hotfix directory is missing.
2.922: FindFirstFile c:\windows\$hf_mig$\*.*
2.922: Error getting find handle for c:\windows\$hf_mig$\*.*
3.000: AnalyzeForBranching used 78 ticks.
3.094: AnalyzePhaseTwo used 94 ticks
3.094: AnalyzePhaseThree used 0 ticks
3.094: AnalyzePhaseFive used 0 ticks
3.094: AnalyzePhaseSix used 0 ticks
3.094: AnalyzeComponents used 454 ticks
3.094: Downloading 0 files
3.094: bPatchMode = FALSE
3.094: Inventory complete: ReturnStatus=0, 469 ticks
3.094: Num Ticks for invent : 485
3.125: VerifyTargetFileSize: Unable to verify size as Source = NULL for file c:\windows\inf\HFXA.tmp
3.156: File is copied:  c:\windows\inf\branches.inf
3.156: DoInstallation: ApplyAdminSystemAclsRecursive for c:\windows\$hf_mig$ failed; error=0x00000003
3.156: Conditional load of section MSI.Reg.Install.Condition succeeded
3.156: Allocation size of drive C: is 4096 bytes, free space = 18175361024 bytes
3.156: AnalyzeDiskUsage:  Skipping EstimateDiskUsageForUninstall.
3.156: Drive C: free 17333MB req: 31MB w/uninstall: NOT CALCULATED.
3.156: CabinetBuild complete
3.156: Num Ticks for Cabinet build : 62
3.156: DynamicStrings section not defined or empty.
3.172: FileInUse:: Detection disabled.
3.172: FileInUse:: Add to list - Service Name: msiserver
4.172: LoadFileQueues: UpdSpGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
4.515: Num Ticks for Backup : 1359
5.062: Num Ticks for creating uninst inf : 547
5.062: Registering Uninstall Program for -> KB942288-v3, KB942288-v3 , 0x0
5.062: LoadFileQueues: UpdSpGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
6.828: System Restore Point set.
6.906: File is copied:  C:\WINDOWS\system32\spmsg.dll
7.140: PFE2: Not avoiding Per File Exceptions.
7.312: GetCatVersion:  Failed to retrieve version information from C:\WINDOWS\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\KB942288-v3.cat with error 0x57
7.531: File is copied:  C:\WINDOWS\system32\msisip.dll
7.562: File is copied:  C:\WINDOWS\system32\msimsg.dll
7.609: File is copied:  C:\WINDOWS\system32\msihnd.dll
7.656: File is copied:  C:\WINDOWS\system32\msiexec.exe
7.828: File is copied:  C:\WINDOWS\system32\msi.dll
7.828: File is copied:  C:\WINDOWS\system32\mui\042a\msimsg.dll.mui
7.875: File is copied:  C:\WINDOWS\system32\mui\0422\msimsg.dll.mui
7.890: File is copied:  C:\WINDOWS\system32\mui\081a\msimsg.dll.mui
7.906: File is copied:  C:\WINDOWS\system32\mui\0414\msimsg.dll.mui
7.937: File is copied:  C:\WINDOWS\system32\mui\042d\msimsg.dll.mui
7.969: File is copied:  C:\WINDOWS\system32\msisip.dll
7.984: File is copied:  C:\WINDOWS\system32\msimsg.dll
8.000: File is copied:  C:\WINDOWS\system32\msihnd.dll
8.015: File is copied:  C:\WINDOWS\system32\msiexec.exe
8.125: File is copied:  C:\WINDOWS\system32\msi.dll
8.140: File is copied:  C:\WINDOWS\system32\DllCache\msisip.dll
8.140: File is copied:  C:\WINDOWS\system32\DllCache\msimsg.dll
8.156: File is copied:  C:\WINDOWS\system32\DllCache\msihnd.dll
8.172: File is copied:  C:\WINDOWS\system32\DllCache\msiexec.exe
8.234: File is copied:  C:\WINDOWS\system32\DllCache\msi.dll
8.281: File is copied:  C:\WINDOWS\system32\mui\0401\msimsg.dll.mui
8.297: File is copied:  C:\WINDOWS\system32\mui\0402\msimsg.dll.mui
8.312: File is copied:  C:\WINDOWS\system32\mui\0403\msimsg.dll.mui
8.328: File is copied:  C:\WINDOWS\system32\mui\0404\msimsg.dll.mui
8.344: File is copied:  C:\WINDOWS\system32\mui\0405\msimsg.dll.mui
8.359: File is copied:  C:\WINDOWS\system32\mui\0406\msimsg.dll.mui
8.390: File is copied:  C:\WINDOWS\system32\mui\0407\msimsg.dll.mui
8.406: File is copied:  C:\WINDOWS\system32\mui\0408\msimsg.dll.mui
8.437: File is copied:  C:\WINDOWS\system32\mui\040b\msimsg.dll.mui
8.469: File is copied:  C:\WINDOWS\system32\mui\040c\msimsg.dll.mui
8.484: File is copied:  C:\WINDOWS\system32\mui\040d\msimsg.dll.mui
8.515: File is copied:  C:\WINDOWS\system32\mui\040e\msimsg.dll.mui
8.547: File is copied:  C:\WINDOWS\system32\mui\0409\msimsg.dll.mui
8.578: File is copied:  C:\WINDOWS\system32\mui\0410\msimsg.dll.mui
8.594: File is copied:  C:\WINDOWS\system32\mui\0411\msimsg.dll.mui
8.609: File is copied:  C:\WINDOWS\system32\mui\0412\msimsg.dll.mui
8.640: File is copied:  C:\WINDOWS\system32\mui\0413\msimsg.dll.mui
8.656: File is copied:  C:\WINDOWS\system32\mui\0415\msimsg.dll.mui
8.687: File is copied:  C:\WINDOWS\system32\mui\0416\msimsg.dll.mui
8.719: File is copied:  C:\WINDOWS\system32\mui\0418\msimsg.dll.mui
8.734: File is copied:  C:\WINDOWS\system32\mui\0419\msimsg.dll.mui
8.750: File is copied:  C:\WINDOWS\system32\mui\041a\msimsg.dll.mui
8.765: File is copied:  C:\WINDOWS\system32\mui\041b\msimsg.dll.mui
8.781: File is copied:  C:\WINDOWS\system32\mui\041d\msimsg.dll.mui
8.797: File is copied:  C:\WINDOWS\system32\mui\041e\msimsg.dll.mui
8.812: File is copied:  C:\WINDOWS\system32\mui\041f\msimsg.dll.mui
8.844: File is copied:  C:\WINDOWS\system32\mui\0424\msimsg.dll.mui
8.859: File is copied:  C:\WINDOWS\system32\mui\0425\msimsg.dll.mui
8.875: File is copied:  C:\WINDOWS\system32\mui\0426\msimsg.dll.mui
8.906: File is copied:  C:\WINDOWS\system32\mui\0427\msimsg.dll.mui
8.937: File is copied:  C:\WINDOWS\system32\mui\0804\msimsg.dll.mui
8.953: File is copied:  C:\WINDOWS\system32\mui\0816\msimsg.dll.mui
8.969: File is copied:  C:\WINDOWS\system32\mui\0c0a\msimsg.dll.mui
9.000: DoInstallation: Installing assemblies with source root path: c:\99a327bd4727ac4df1ba\
9.000: Num Ticks for Copying files : 3938
9.062: Num Ticks for Reg update and deleting 0 size files : 62	
9.062: DoInstallation: ApplyAdminSystemAclsRecursive for c:\windows\$hf_mig$\KB942288-v3 failed; error=0x00000003
9.078: ---- Old Information In The Registry ------
9.094: Source:C:\WINDOWS\system32\_000116_.tmp.dll (3.1.4001.5512)
9.094: Destination: 
9.094: ---- New Information In The Registry ------
9.094: Source:C:\WINDOWS\system32\_000116_.tmp.dll (3.1.4001.5512)
9.094: Destination: 
12.094: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
12.094: IsRebootRequiredForFileQueue: c:\windows\system32\msisip.dll was no-delay replaced; reboot is required.
12.094: IsRebootRequiredForFileQueue: c:\windows\system32\msimsg.dll was no-delay replaced; reboot is required.
12.094: IsRebootRequiredForFileQueue: c:\windows\system32\msihnd.dll was no-delay replaced; reboot is required.
12.094: IsRebootRequiredForFileQueue: c:\windows\system32\msiexec.exe was no-delay replaced; reboot is required.
12.094: IsRebootRequiredForFileQueue: c:\windows\system32\msi.dll was no-delay replaced; reboot is required.
12.094: DoInstallation: A reboot is required to complete the installation of one or more files.
12.094: In Function SetVolatileFlag, line 11741, RegOpenKeyEx failed with error 0x2
12.094: In Function SetVolatileFlag, line 11758, RegOpenKeyEx failed with error 0x2
12.094: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot.RebootNotRequired] section is empty; nothing to do.
12.109: RebootNecessary = 1,WizardInput = 1 , DontReboot = 1, ForceRestart = 0

Coordinator
Nov 24, 2011 at 4:49 PM
Edited Nov 24, 2011 at 4:52 PM

That's one weird error code you get: 0xf0f6. It's not anything I have seen. Either way, it's 61686, which you should add to the list of returncodes_success (or better, returncodes_reboot_required, which will let DNI handle the reboot). Those are options in the editor in your component.

Also, just to be sure that you're not hitting a known bug, switch to 2.0 (I released it today, it has been stable for a long time).

Nov 28, 2011 at 10:17 AM

Hmm.. I tried to add 61686 to returncodes_reboot_required. The result is same:

Component 'WindowsInstaller45_WindowsXP-KB942288-v3-x86' (Windows Installer 4.5 (WindowsXP-x86)): ERROR - Error executing component 'WindowsInstaller45_WindowsXP-KB942288-v3-x86'

(Windows Installer 4.5 (WindowsXP-x86)), return code is not in 'ERROR_SUCCESS_REBOOT_REQUIRED,ERROR_SUCCESS': 0xbc2

I couldn't use the 2.0 version, because the registry check for my product is evaluating wrong. The dni is showing me that my product is already installed.

I'll check it again.

Nov 28, 2011 at 11:19 AM

Very strange thing..

 

	-------------------------------------------------------------------
	dotNetInstaller (DNI), version 2.0.81.0
	Copyright (c) DevAge, Vestris Inc. & Contributors
	Operating system: Windows XP SP3
	-------------------------------------------------------------------
	Sequence: install
	UI level: full
	Configuration language id: 1049 
	-- Loading supported components (lcid=1049)
	-- myproduct_x86.msi (display_name='product "displayname"', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
	-- myproduct_x64.msi (display_name='product "displayname"', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
	--- Loaded 1 supported component(s)
	Checking whether registry value 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{MY_GUID}\DisplayVersion' exists
	*** No registry key found: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{MY_GUID}\DisplayVersion, default value: false
	-- myproduct_x86.msi (product "displayname"): NOT INSTALLED
	All components installed, switching to uninstall.
	-- Loading supported components (lcid=1049)
	-- myproduct_x86.msi (display_name='product "displayname"', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
	-- myproduct_x64.msi (display_name='product "displayname"', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
	--- Loaded 1 supported component(s)
	Checking whether registry value 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{MY_GUID}\DisplayVersion' exists
	*** No registry key found: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{MY_GUID}\DisplayVersion, default value: false
	-- myproduct_x86.msi (product "displayname"): NOT INSTALLED
	All components uninstalled, nothing to do.
	--- Complete Command

 

Coordinator
Nov 28, 2011 at 11:34 AM

I assume MY_GUID is actually  GUID that you cut out. So, does that key exist? Also, check whether it's HKLM/HKCU, etc (I created http://dotnetinstaller.codeplex.com/workitem/9902 to log it).

Nov 28, 2011 at 11:53 AM

There is no that key in registry. This installedcheck is working well with v.1.10.1525.0


<installedcheck path="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{here is product code - constant}" fieldname="DisplayVersion" fieldvalue="2.10.0.2" defaultvalue="False" fieldtype="REG_DWORD" comparison="version" rootkey="HKEY_LOCAL_MACHINE" wowoption="NONE"
 type="check_registry_value" description="Installed Check" />

Coordinator
Nov 28, 2011 at 11:57 AM

This does look odd. Can you please create an issue and attach your complete configuration? Thanks.

Nov 28, 2011 at 12:20 PM

http://dotnetinstaller.codeplex.com/workitem/9902

Coordinator
Dec 11, 2011 at 12:57 PM

The component has a "required_install" field set to false. So it thinks that it's not required to yield a successful installation. Switch that  to "true" - does it fix the problem?