Using Embeded files - getting access errors

Sep 30, 2010 at 1:17 PM

Hello

I have embeded a file into my setup package, upon choosing to install this file, the program will extract it, I see that happen, I see the file in my temp directory.  When I attempt to leave the program, it must be trying to delete the extracted file.   I get the following Error: 

"0x80070005 - Error deleting C:\DOCUME~1\Temp\{2F5E825E-C292-45B2-B18E-8EB0C1CBD991}\Extracted\sqlncli.msi: Access is denied."

Here is how I have this setup:

SourceFilePath   =   #APPPATH\ResourceFiles\sqlncli.msi

TargetFilePath   =    #TEMPPATH\Extracted\sqlncli.msi

package          =    #CABPATH\ResourceFiles\sqlncli.msi

cabPath          =   #TEMPPATH\#GUID

 

The temp file actually exists in:  C:\Documents and Settings\jschertzer\Local Settings\Temp\{F73AB6FF-7057-4108-A1E9-7B49F25F9752}\Extracted      After the extraction.

Coordinator
Sep 30, 2010 at 4:49 PM

I've seen this before. Post the full log please. Also, where does log_file go?

Sep 30, 2010 at 6:59 PM

2010-09-30 14:58:06 -------------------------------------------------------------------
2010-09-30 14:58:06 dotNetInstaller (DNI), version 2.0.5539.0
2010-09-30 14:58:06 Copyright (c) DevAge, Vestris Inc. & Contributors
2010-09-30 14:58:06 Operating system: Windows XP SP3
2010-09-30 14:58:06 -------------------------------------------------------------------
2010-09-30 14:58:06 Sequence: install
2010-09-30 14:58:06 UI level: full
2010-09-30 14:58:06 Configuration language id: 1033
2010-09-30 14:58:06 -- Loading supported components (lcid=1033)
2010-09-30 14:58:06 -- 1 (display_name='SQL Server Native Client', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
2010-09-30 14:58:06 -- 2 (display_name='SQL Server Native Client 64bit', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
2010-09-30 14:58:06 -- msxml (display_name='MSXML 6.0 Parser', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
2010-09-30 14:58:06 -- msxml64 (display_name='MSXML 6.0 Parser 64bit', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
2010-09-30 14:58:06 --- Loaded 2 supported component(s)
2010-09-30 14:58:06 Checking file: C:\WINDOWS\system32\sqlncli.dll
2010-09-30 14:58:06 -- 1 (SQL Server Native Client): NOT INSTALLED
2010-09-30 14:58:06 Checking whether registry value 'SOFTWARE\Microsoft\MSXML 6.0 Parser and SDK\CurrentVersion\PatchLevel' exists
2010-09-30 14:58:06 Registry value 'SOFTWARE\Microsoft\MSXML 6.0 Parser and SDK\CurrentVersion\PatchLevel' found
2010-09-30 14:58:06 -- msxml (MSXML 6.0 Parser): INSTALLED
2010-09-30 14:58:11 -- Loading supported components (lcid=1033)
2010-09-30 14:58:11 -- 1 (display_name='SQL Server Native Client', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
2010-09-30 14:58:11 -- 2 (display_name='SQL Server Native Client 64bit', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
2010-09-30 14:58:11 -- msxml (display_name='MSXML 6.0 Parser', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
2010-09-30 14:58:11 -- msxml64 (display_name='MSXML 6.0 Parser 64bit', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
2010-09-30 14:58:11 --- Loaded 2 supported component(s)
2010-09-30 14:58:11 --- Setting user-defined checkbox value '1'=1
2010-09-30 14:58:11 Extracting embedded files for component '*': NO FILES EMBEDDED
2010-09-30 14:58:11 --- Component '1' (SQL Server Native Client): EXECUTING
2010-09-30 14:58:11 Extracting embedded files for component '1': 1 CAB(s)
2010-09-30 14:58:11 Resolved CAB path 'C:\DOCUME~1\JSCHER~1\LOCALS~1\Temp\{C36E43F3-C2D4-4545-BA1C-A8EE0C01CD95}' for component '1'
2010-09-30 14:58:11 Extracting 'SETUP_1_1.CAB' for component '1'
2010-09-30 14:58:11 Extracting: C:\DOCUME~1\JSCHER~1\LOCALS~1\Temp\{C36E43F3-C2D4-4545-BA1C-A8EE0C01CD95}\Extracted\sqlncli.msi
2010-09-30 14:58:11 Done: C:\DOCUME~1\JSCHER~1\LOCALS~1\Temp\{C36E43F3-C2D4-4545-BA1C-A8EE0C01CD95}\Extracted\sqlncli.msi
2010-09-30 14:58:11 -- Package: C:\DOCUME~1\JSCHER~1\LOCALS~1\Temp\{C36E43F3-C2D4-4545-BA1C-A8EE0C01CD95}\Extracted\sqlncli.msi
2010-09-30 14:58:11 Executing: msiexec /i "C:\DOCUME~1\JSCHER~1\LOCALS~1\Temp\{C36E43F3-C2D4-4545-BA1C-A8EE0C01CD95}\Extracted\sqlncli.msi"
2010-09-30 14:58:11 --- Component '1 (SQL Server Native Client): FINISHED
2010-09-30 14:58:17 *** Component '1' (SQL Server Native Client): ERROR - Error executing '1' (SQL Server Native Client): 0x642
2010-09-30 14:58:17 --- Component '1 (SQL Server Native Client)' FAILED: Error executing '1' (SQL Server Native Client): 0x642
2010-09-30 14:58:19 --- Component '1 (SQL Server Native Client): FAILED, ABORTING
2010-09-30 14:58:19 *** Failed to install one or more components, reloading components (reload_on_error).
2010-09-30 14:58:19 -- Loading supported components (lcid=1033)
2010-09-30 14:58:19 -- 1 (display_name='SQL Server Native Client', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
2010-09-30 14:58:19 -- 2 (display_name='SQL Server Native Client 64bit', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
2010-09-30 14:58:19 -- msxml (display_name='MSXML 6.0 Parser', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): LOADED
2010-09-30 14:58:19 -- msxml64 (display_name='MSXML 6.0 Parser 64bit', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): SKIPPED
2010-09-30 14:58:19 --- Loaded 2 supported component(s)
2010-09-30 14:58:19 Checking file: C:\WINDOWS\system32\sqlncli.dll
2010-09-30 14:58:19 -- 1 (SQL Server Native Client): NOT INSTALLED
2010-09-30 14:58:19 Checking whether registry value 'SOFTWARE\Microsoft\MSXML 6.0 Parser and SDK\CurrentVersion\PatchLevel' exists
2010-09-30 14:58:19 Registry value 'SOFTWARE\Microsoft\MSXML 6.0 Parser and SDK\CurrentVersion\PatchLevel' found
2010-09-30 14:58:19 -- msxml (MSXML 6.0 Parser): INSTALLED
2010-09-30 14:58:20 Deleting CAB folder: C:\DOCUME~1\JSCHER~1\LOCALS~1\Temp\{C36E43F3-C2D4-4545-BA1C-A8EE0C01CD95}
2010-09-30 14:58:20 Error terminating dotNetInstaller: 0x80070005 - Error deleting C:\DOCUME~1\JSCHER~1\LOCALS~1\Temp\{C36E43F3-C2D4-4545-BA1C-A8EE0C01CD95}\Extracted\sqlncli.msi: Access is denied.

 

The log file is just going into the Temp folder like this:  #TEMPPATH\IC.log

Coordinator
Oct 1, 2010 at 11:58 AM

Nothing unusual in the log. Two questions.

  1. Does your MSI get embedded read-only by any chance? If so this is #2741.
  2. Swap the msiexec command for running some other MSI elsewhere (c:\temp\something.msi). Does the same problem occur?

-dB.

 

 

Oct 1, 2010 at 6:19 PM

Yes, all my .msi's were read-only.  Thanks man...

Sep 23, 2011 at 6:45 PM

I am having the same issue and my file is not read-only. I have 4 files embedded and I am having issue with only one of them.  

 

2011-09-23 11:42:07	--- Component 'Configure Lync Secure Instant Messaging' (Configure Lync Secure Instant Messaging): EXECUTING
2011-09-23 11:42:07	Extracting embedded files for component 'Configure Lync Secure Instant Messaging': NO FILES EMBEDDED
2011-09-23 11:42:07	Executing: cmd.exe /C reg import "C:\Users\saver\AppData\Local\Temp\1\{372905A7-27FD-4CE5-95DB-9691FBE0A16F}\LyncConfig.reg" & "C:\Users\saver\AppData\Local\Temp\1\{372905A7-27FD-4CE5-95DB-9691FBE0A16F}\MergeHostsFile.exe" "206.225.167.198 LYNCFE027-NJ-1.exch027.domain.local" "206.225.167.200 LYNCFE027-NJ-2.exch027.domain.local"
2011-09-23 11:42:07	Component 'Configure Lync Secure Instant Messaging' (Configure Lync Secure Instant Messaging) return code '0, defined as success in '0.
2011-09-23 11:42:07	*** Component 'Configure Lync Secure Instant Messaging' (Configure Lync Secure Instant Messaging): SUCCESS
2011-09-23 11:42:07	-- Loading supported components (lcid=1033)
2011-09-23 11:42:07	-- Microsoft .NET Framework 2.0 SP1 (x86) (display_name='Microsoft .NET Framework 2.0 SP1 (x86)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=Windows XP+, processor_architecture_filter=x86): SKIPPED
2011-09-23 11:42:07	-- Microsoft .NET Framework 2.0 SP1 (x64) (display_name='Microsoft .NET Framework 2.0 SP1 (x64)', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=Windows XP+, processor_architecture_filter=x64): SKIPPED
2011-09-23 11:42:07	-- DetectOutlook (display_name='Prerequisites', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2011-09-23 11:42:07	-- lync2010x64 (display_name='Lync Secure Instant Messaging x64', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): LOADED
2011-09-23 11:42:07	-- lync2010x64patch (display_name='Lync Secure Instant Messaging x64 Patch', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x64): LOADED
2011-09-23 11:42:07	-- lync2010x86 (display_name='Lync Secure Instant Messaging', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): SKIPPED
2011-09-23 11:42:07	-- lync2010patch (display_name='Lync Secure Instant Messaging Patch', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=x86): SKIPPED
2011-09-23 11:42:07	-- Configure Lync Secure Instant Messaging (display_name='Configure Lync Secure Instant Messaging', os_filter_lcid=, os_filter=, os_filter_min=, os_filter_max=, processor_architecture_filter=): LOADED
2011-09-23 11:42:07	--- Loaded 4 supported component(s)
2011-09-23 11:42:07	-- DetectOutlook (Prerequisites): NOT INSTALLED
2011-09-23 11:42:07	-- lync2010x64 (Lync Secure Instant Messaging x64): NOT INSTALLED
2011-09-23 11:42:07	-- lync2010x64patch (Lync Secure Instant Messaging x64 Patch): NOT INSTALLED
2011-09-23 11:42:07	-- Configure Lync Secure Instant Messaging (Configure Lync Secure Instant Messaging): NOT INSTALLED
2011-09-23 11:42:07	--- Complete Command
2011-09-23 11:42:14	Deleting temporary folder: C:\Users\saver\AppData\Local\Temp\1\{372905A7-27FD-4CE5-95DB-9691FBE0A16F}
2011-09-23 11:42:14	Error terminating dotNetInstaller: 0x80070005 - Error deleting C:\Users\saver\AppData\Local\Temp\1\{372905A7-27FD-4CE5-95DB-9691FBE0A16F}\DetectOutlook.exe: Access is denied.
2011-09-23 11:42:18	dotNetInstaller finished, return code=0

Sep 23, 2011 at 8:27 PM

Never mind! My file was read-only after all. Thanks, source control!