LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Building Distribution Kit with CVI 8.0.1 Fails After Installing CVI 2010

Solved!
Go to solution

Thanks for your time, I appreciate it!

 

The log is 212 MB, so just the interesting bit.

 

with 2009 msms:

[[snip]]
RollbackCleanup: Datei: C:\Config.Msi\15dfc50.rbf RollbackCleanup: Datei: C:\Config.Msi\15dfc51.rbf MSI (s) (4C:A4) [14:32:31:072]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 103, llSequenceNumber: 675, szDescription: "". MSI (s) (4C:A4) [14:32:31:072]: The call to SRSetRestorePoint API succeeded. Returned status: 0. MSI (s) (4C:A4) [14:32:31:072]: Unlocking Server MSI (s) (4C:A4) [14:32:31:072]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'. Aktion beendet 14:32:31: InstallFinalize. Rückgabewert 1. MSI (s) (4C:A4) [14:32:31:072]: Doing action: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0 Aktion 14:32:31: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0. Aktion gestartet 14:32:31: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0. MSI (s) (4C:C8) [14:32:31:103]: Invoking remote custom action. DLL: C:\WINNT\Installer\MSI215.tmp, Entrypoint: NIMUSetPermissions NIMUSetPermissions: Version=3.0.0.408 NIMUSetPermissions: Build date=9/6/2011 4:07:07 PM NIMUSetPermissions: Starting action... MSI (s) (4C!34) [14:32:31:166]: Note: 1: 2262 2: NIPermissions 3: -2147287038 SetPermissionsForLocation: Processing 'NIPathsPermissions' table row with primary key 'NIPUBDOCSDIR', location key 'NIPUBDOCSDIR', formatted location ''. SetPermissionsForLocation: Setting directory permissions. SetPermissionsForLocation: Processing 'NIPathsPermissions' table row with primary key 'NIPUBAPPDATADIR', location key 'NIPUBAPPDATADIR', formatted location ''. SetPermissionsForLocation: Property not requested in this Part, skipping. SetPermissionsForLocation: Processing 'NIPathsPermissions' table row with primary key 'NISHAREDMEMORYDIR', location key 'NISHAREDMEMORYDIR', formatted location ''. SetPermissionsForLocation: Property not requested in this Part, skipping. NIMUSetPermissions: Complete! Aktion beendet 14:32:53: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0. Rückgabewert 1. MSI (s) (4C:A4) [14:32:53:478]: Doing action: NIPathsSavePaths2.91D5760B_F9E8_4332_BFB1_38A4CB799A3E [[snip]]

 

where I inserted the empty line something different happens with 2010 SP1 msms:

[[snip]]
RollbackCleanup: Datei: C:\Config.Msi\1449f64.rbf
RollbackCleanup: Datei: C:\Config.Msi\1449f65.rbf
MSI (s) (28:DC) [14:04:44:620]: Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 103, llSequenceNumber: 674, szDescription: "".
MSI (s) (28:DC) [14:04:44:620]: The call to SRSetRestorePoint API succeeded. Returned status: 0.
MSI (s) (28:DC) [14:04:44:620]: Unlocking Server
MSI (s) (28:DC) [14:04:44:620]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Aktion beendet 14:04:44: InstallFinalize. Rückgabewert 1.
MSI (s) (28:DC) [14:04:44:620]: Doing action: SxsUninstallCA.MDF100
Aktion 14:04:44: SxsUninstallCA.MDF100. 
Aktion gestartet 14:04:44: SxsUninstallCA.MDF100.
MSI (s) (28:B4) [14:04:44:635]: Invoking remote custom action. DLL: C:\WINNT\Installer\MSI1D4.tmp, Entrypoint: CustomAction_SxsMsmCleanup
1: sxsdelca tried opening key w/o wow64key  2: Software\Microsoft\Windows\CurrentVersion\SideBySide\PatchedComponents 3: 404 4: 0 
1: sxsdelca tried opening wow64key  2: Software\Microsoft\Windows\CurrentVersion\SideBySide\PatchedComponents 3: 464 4: 0 
1: sxsdelca 2: traceop 3: 1158 4: 0 
1: sxsdelca 2: traceop 3: 1186 4: 0 
1: sxsdelca 2: traceop 3: 732 4: 0 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {BD868C41-BB9B-4AA7-A3F1-DB1FA1A02610} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {1A020A91-819C-4078-94BC-79DA47149C50} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {3E908702-AF35-4611-9518-955DA24B7E07} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {B9426885-7EAB-4d29-9324-F9F9FBD5D2C2} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {0F9196C6-58B4-445B-B56E-B1200FECC151} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {48095BC7-9281-4446-BD0D-0C82C5DDFDF4} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {CD70892A-068D-409F-BE2E-949B7A3518AE} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {77454B5C-F8C2-48FE-9A35-E66E672EFA2F} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {C32E579E-33DE-11D4-A18B-0040951A786F} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {90120000-0020-0407-0000-0000000FF1CE} 3: {98CB24AD-52FB-DB5F-C01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: 3 
1: sxsdelca 2: traceop 3: 1193 4: 0 
1: sxsdelca 2: traceop 3: 1186 4: 0 
1: sxsdelca 2: traceop 3: 732 4: 0 
1: sxsdelca 2: traceop 3: 748 4: 0 
1: scavenge 2: {BD868C41-BB9B-4AA7-A3F1-DB1FA1A02610} 3: {98CB24AD-52FB-DB5F-B01F-C8B3B9A1E18E} 4: {C8D22ACF-4F5F-4902-91B8-2609951A8378} 5: -1 
1: sxsdelca 2: traceop 3: 748 4: 0 
[[the sxsdelca 2, scavenge 2 stuff gets repeated until...]]
1: sxsdelca 2: traceop 3: 662 4: 0 
1: sxsdelca 2: traceop 3: 664 4: 0 
1: sxsdelca 2: traceop 3: 1346 4: 0 
1: sxsdelca 2: SxsMsmCleanup 3: 0 4: 0 
Aktion beendet 14:30:03: SxsUninstallCA.MDF100. Rückgabewert 1.
MSI (s) (28:DC) [14:30:03:885]: Doing action: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0
Aktion 14:30:03: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0. 
Aktion gestartet 14:30:03: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0.
MSI (s) (28:54) [14:30:03:932]: Invoking remote custom action. DLL: C:\WINNT\Installer\MSI1D5.tmp, Entrypoint: NIMUSetPermissions
NIMUSetPermissions: Version=3.0.0.408
NIMUSetPermissions: Build date=9/6/2011 4:07:07 PM
NIMUSetPermissions: Starting action...
MSI (s) (28!3C) [14:30:04:010]: Note: 1: 2262 2: NIPermissions 3: -2147287038 
SetPermissionsForLocation: Processing 'NIPathsPermissions' table row with primary key 'NIPUBDOCSDIR', location key 'NIPUBDOCSDIR', formatted location ''.
SetPermissionsForLocation: Setting directory permissions.
SetPermissionsForLocation: Processing 'NIPathsPermissions' table row with primary key 'NIPUBAPPDATADIR', location key 'NIPUBAPPDATADIR', formatted location ''.
SetPermissionsForLocation: Property not requested in this Part, skipping.
SetPermissionsForLocation: Processing 'NIPathsPermissions' table row with primary key 'NISHAREDMEMORYDIR', location key 'NISHAREDMEMORYDIR', formatted location ''.
SetPermissionsForLocation: Property not requested in this Part, skipping.
NIMUSetPermissions: Complete!
Aktion beendet 14:30:22: NIMUSetPermissions.91D5760B_F9E8_4332_BFB1_38A4CB799A3E0. Rückgabewert 1.
[[snip]]

 

That's 26 min at "0 seconds left" in the dialog...

 

Note: This is not the distribution that caused the error with CVI 8.

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 11 of 12
(857 Views)

It turns out that this exact issue was discovered internally at NI a couple months ago. The problem is a poor algorithm used by the SxsUninstallCA custom action that resides in a few recent versions of the Microsoft VC runtime merge modules. Unfortunately, this custom action and the containing merge modules are owned by Microsoft and are completely outside of our control. The CVI 2010 runtime engine merge modules depend on the MSVC 9.0 runtime merge modules, which is why they are being included in the distributions you build. The reason you only began seeing this issue after installing CVI 2010 is that before that version, the CVI RTE merge modules incorrectly omitted the dependency. You can read some discussion about that here.

 

One workaround is to hide the MSVC 9.0 runtime merge modules so that they cannot be included in your distribution. Doing so will result in warnings be reported in the distribution build log, but the build will complete successfully. To do this, navigate to [Program Files]\Common Files\Merge Modules, and move the following files into a different folder (e.g. ...\Merge Modules\hidden):

 

Microsoft_VC90_CRT_x86.msm

Microsoft_VC90_MFC_x86.msm

policy_9_0_Microsoft_VC90_CRT_x86.msm

policy_9_0_Microsoft_VC90_MFC_x86.msm

 

Be warned that if the system you install your distribution to does not already have this version of the Microsoft VC runtime, your program may not run correctly. In practice, though, most targets will probably already have this installed.

 

Let me know if you need any more help.

 

Mert A.

National Instruments

0 Kudos
Message 12 of 12
(840 Views)