Cameyo

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: APIRET_VIRTFILES_INI_ERROR popup when repackaging
Scott

Date:
APIRET_VIRTFILES_INI_ERROR popup when repackaging
Permalink   
 


When trying to repackage an app it pretty quickly pops up a dialog with the following information.

PID44432:TID49592:358726062ms:Mw.cameyo.exe:Loader:Loader: E:\Apps\Mw.cameyo.exe
PID44432:TID49592:358726062ms:Mw.cameyo.exe:Loader:-Repackage
PID44432:TID49592:358726125ms:Mw.cameyo.exe:UnpackUtils:UnpackUtils_ReadIni(PeContainer=E:\Apps\Mw.cameyo.new.exe)
PID44432:TID49592:358726125ms:Mw.cameyo.exe:Loader:Fatal: Could not repackage: APIRET_VIRTFILES_INI_ERROR

 

I also tried the Cameyo debugger and got the same output. 

 

The package info is:

---------------------------
Info
---------------------------
AppID = Mw
AutoLaunch = %Program Files%\Steam\Steam.exe>>Steam>;
BaseDirName = %ExeDir%\%AppID%.cameyo.files
Build = 2
BuildUID = A0549229-3E34-4912-BA05-058FF9AB195C
FriendlyName = Mw
IsolationMode = Isolated
NewServices = 1
OnStopUnvirtualized = %MyExe%>-Quiet -Remove:Reg
Publisher = Microsoft Corporation
Shortcuts = %Program Files%\Steam\Steam.exe>>%Common Desktop%\Steam.lnk>
StopInheritance = %System%\spoolsv.exe;ie4uinit.exe
TtlResistRemove = 0
Version = 4.0.30319
VirtMode = DISK
-----------------------------
Engine version=2.6.1220.0
Compression: BZIP2
Loader size=1917952

---------------------------
OK  
---------------------------

 

In procmon I think it's crashing because it pretty quickly starts querying for WER after creating the new package file which is the crash dump utility in Windows.  Another thing I noticed was that the new .dat file was queried but wasn't created before it stopped.

 
1:30:12.6368381 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.new.exe NAME NOT FOUND Desired Access: Write Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
1:30:12.6369785 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.new.exe NAME NOT FOUND Desired Access: Read Attributes, Delete, Disposition: Open, Options: Non-Directory File, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
1:30:12.6370873 PM Mw.cameyo.exe 50756 QueryOpen E:\Apps\Mw.cameyo.new.exe NAME NOT FOUND 
1:30:12.6373283 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.exe SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Sequential Access, Non-Directory File, Open Reparse Point, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
1:30:12.6374002 PM Mw.cameyo.exe 50756 QueryAttributeTagFile E:\Apps\Mw.cameyo.exe SUCCESS Attributes: A, ReparseTag: 0x0
1:30:12.6374333 PM Mw.cameyo.exe 50756 CloseFile E:\Apps\Mw.cameyo.exe SUCCESS 
1:30:12.6375750 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.exe SUCCESS Desired Access: Generic Read, Disposition: Open, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Open Reparse Point, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
1:30:12.6377529 PM Mw.cameyo.exe 50756 QueryEaInformationFile E:\Apps\Mw.cameyo.exe SUCCESS EaSize: 0
1:30:12.6378491 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.new.exe SUCCESS Desired Access: Generic Read/Write, Delete, Write DAC, Disposition: OverwriteIf, Options: Sequential Access, Non-Directory File, Attributes: A, ShareMode: None, AllocationSize: 1,626,624, OpenResult: Created
1:30:12.6381125 PM Mw.cameyo.exe 50756 CloseFile E:\Apps\Mw.cameyo.new.exe SUCCESS 
1:30:12.6383746 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.new.exe SUCCESS Desired Access: Generic Read/Write, Delete, Write DAC, Disposition: OpenIf, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: A, ShareMode: None, AllocationSize: 1,626,624, OpenResult: Opened
1:30:12.6390485 PM Mw.cameyo.exe 50756 CreateFile C:\Windows\SysWOW64\ntmarta.dll SUCCESS Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
1:30:12.6391259 PM Mw.cameyo.exe 50756 QueryBasicInformationFile C:\Windows\SysWOW64\ntmarta.dll SUCCESS CreationTime: 8/21/2013 7:53:56 PM, LastAccessTime: 8/21/2013 7:53:56 PM, LastWriteTime: 8/21/2013 10:29:29 PM, ChangeTime: 8/16/2014 2:24:21 PM, FileAttributes: A
1:30:12.6391520 PM Mw.cameyo.exe 50756 CloseFile C:\Windows\SysWOW64\ntmarta.dll SUCCESS 
1:30:12.6393350 PM Mw.cameyo.exe 50756 CreateFile C:\Windows\SysWOW64\ntmarta.dll SUCCESS Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened
1:30:12.6400592 PM Mw.cameyo.exe 50756 QueryRemoteProtocolInformation E:\Apps\Mw.cameyo.exe INVALID PARAMETER 
1:30:12.6400994 PM Mw.cameyo.exe 50756 QuerySecurityFile E:\Apps\Mw.cameyo.exe SUCCESS Information: 0x20
1:30:12.6401375 PM Mw.cameyo.exe 50756 SetEndOfFileInformationFile E:\Apps\Mw.cameyo.new.exe SUCCESS EndOfFile: 1,626,624
1:30:12.6407525 PM Mw.cameyo.exe 50756 ReadFile E:\Apps\Mw.cameyo.exe SUCCESS Offset: 0, Length: 262,144, Priority: Normal
1:30:12.6409041 PM Mw.cameyo.exe 50756 WriteFile E:\Apps\Mw.cameyo.new.exe SUCCESS Offset: 0, Length: 262,144, Priority: Normal
1:30:12.6411079 PM Mw.cameyo.exe 50756 ReadFile E:\Apps\Mw.cameyo.exe SUCCESS Offset: 262,144, Length: 262,144
1:30:12.6412337 PM Mw.cameyo.exe 50756 WriteFile E:\Apps\Mw.cameyo.new.exe SUCCESS Offset: 262,144, Length: 262,144
1:30:12.6413803 PM Mw.cameyo.exe 50756 ReadFile E:\Apps\Mw.cameyo.exe SUCCESS Offset: 524,288, Length: 262,144
1:30:12.6415014 PM Mw.cameyo.exe 50756 WriteFile E:\Apps\Mw.cameyo.new.exe SUCCESS Offset: 524,288, Length: 262,144
1:30:12.6416457 PM Mw.cameyo.exe 50756 ReadFile E:\Apps\Mw.cameyo.exe SUCCESS Offset: 786,432, Length: 262,144
1:30:12.6417635 PM Mw.cameyo.exe 50756 WriteFile E:\Apps\Mw.cameyo.new.exe SUCCESS Offset: 786,432, Length: 262,144
1:30:12.6419087 PM Mw.cameyo.exe 50756 ReadFile E:\Apps\Mw.cameyo.exe SUCCESS Offset: 1,048,576, Length: 262,144
1:30:12.6421351 PM Mw.cameyo.exe 50756 WriteFile E:\Apps\Mw.cameyo.new.exe SUCCESS Offset: 1,048,576, Length: 262,144
1:30:12.6422934 PM Mw.cameyo.exe 50756 ReadFile E:\Apps\Mw.cameyo.exe SUCCESS Offset: 1,310,720, Length: 262,144
1:30:12.6424107 PM Mw.cameyo.exe 50756 WriteFile E:\Apps\Mw.cameyo.new.exe SUCCESS Offset: 1,310,720, Length: 262,144
1:30:12.6425573 PM Mw.cameyo.exe 50756 ReadFile E:\Apps\Mw.cameyo.exe SUCCESS Offset: 1,572,864, Length: 53,760
1:30:12.6426072 PM Mw.cameyo.exe 50756 WriteFile E:\Apps\Mw.cameyo.new.exe SUCCESS Offset: 1,572,864, Length: 53,760
1:30:12.6426699 PM Mw.cameyo.exe 50756 SetBasicInformationFile E:\Apps\Mw.cameyo.new.exe SUCCESS CreationTime: 0, LastAccessTime: 0, LastWriteTime: 8/25/2014 11:58:33 PM, ChangeTime: 8/26/2014 12:03:11 AM, FileAttributes: n/a
1:30:12.6427432 PM Mw.cameyo.exe 50756 CloseFile E:\Apps\Mw.cameyo.new.exe SUCCESS 
1:30:12.6431353 PM Mw.cameyo.exe 50756 CloseFile E:\Apps\Mw.cameyo.exe SUCCESS 
1:30:12.6432763 PM Mw.cameyo.exe 50756 QueryOpen E:\Apps\Mw.cameyo.new.exe SUCCESS CreationTime: 8/27/2014 1:30:12 PM, LastAccessTime: 8/27/2014 1:30:12 PM, LastWriteTime: 8/25/2014 11:58:33 PM, ChangeTime: 8/26/2014 12:03:11 AM, AllocationSize: 1,630,208, EndOfFile: 1,626,624, FileAttributes: A
1:30:12.6434077 PM Mw.cameyo.exe 50756 QueryOpen E:\Apps\Mw.cameyo.new.dat NAME NOT FOUND 
1:30:12.6435493 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.new.exe SUCCESS Desired Access: Write Attributes, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
1:30:12.6436045 PM Mw.cameyo.exe 50756 SetBasicInformationFile E:\Apps\Mw.cameyo.new.exe SUCCESS CreationTime: 0, LastAccessTime: 0, LastWriteTime: 0, ChangeTime: 0, FileAttributes: N
1:30:12.6436704 PM Mw.cameyo.exe 50756 CloseFile E:\Apps\Mw.cameyo.new.exe SUCCESS 
1:30:12.6438244 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.new.exe SUCCESS Desired Access: Generic Read/Write, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a, OpenResult: Opened
1:30:12.7082292 PM Mw.cameyo.exe 50756 QueryStandardInformationFile E:\Apps\Mw.cameyo.new.exe SUCCESS AllocationSize: 1,630,208, EndOfFile: 1,626,624, NumberOfLinks: 1, DeletePending: False, Directory: False
1:30:12.7082955 PM Mw.cameyo.exe 50756 CreateFileMapping E:\Apps\Mw.cameyo.new.exe FILE LOCKED WITH WRITERS SyncType: SyncTypeCreateSection, PageProtection:
1:30:12.7083090 PM Mw.cameyo.exe 50756 QueryStandardInformationFile E:\Apps\Mw.cameyo.new.exe SUCCESS AllocationSize: 1,630,208, EndOfFile: 1,626,624, NumberOfLinks: 1, DeletePending: False, Directory: False
1:30:12.7083357 PM Mw.cameyo.exe 50756 CreateFileMapping E:\Apps\Mw.cameyo.new.exe SUCCESS SyncType: SyncTypeOther
1:30:12.7084105 PM Mw.cameyo.exe 50756 CloseFile E:\Apps\Mw.cameyo.new.exe SUCCESS 
1:30:12.7085190 PM Mw.cameyo.exe 50756 CreateFile E:\Apps\Mw.cameyo.new.exe SUCCESS Desired Access: Read Attributes, Delete, Disposition: Open, Options: Non-Directory File, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
1:30:12.7085486 PM Mw.cameyo.exe 50756 QueryAttributeTagFile E:\Apps\Mw.cameyo.new.exe SUCCESS Attributes: N, ReparseTag: 0x0
1:30:12.7085653 PM Mw.cameyo.exe 50756 SetDispositionInformationFile E:\Apps\Mw.cameyo.new.exe SUCCESS Delete: True
1:30:12.7085829 PM Mw.cameyo.exe 50756 CloseFile E:\Apps\Mw.cameyo.new.exe SUCCESS 
1:30:12.7088761 PM Mw.cameyo.exe 50756 RegOpenKey HKLM\Software\Wow6432Node\Microsoft\Windows\Windows Error Reporting\WMR SUCCESS Desired Access: Query Value
1:30:12.7089072 PM Mw.cameyo.exe 50756 RegSetInfoKey HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\WMR SUCCESS KeySetInformationClass: KeySetHandleTagsInformation, Length: 0
1:30:12.7089154 PM Mw.cameyo.exe 50756 RegQueryValue HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\WMR\Disable SUCCESS Type: REG_DWORD, Length: 4, Data: 1
1:30:12.7089274 PM Mw.cameyo.exe 50756 RegCloseKey HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\WMR SUCCESS 

 



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

Please try saving package as a normal single file, i.e. remove check mark from Save package as .DAT, -Repackage, and then save as .dat.



__________________
Scott

Date:
Permalink   
 

Changing the .dat setting works.  When I run the repackage command I get the following error.

 

mw.cameyo.exe -repackage

 

---------------------------
Y:\MW\Mw.cameyo.exe
---------------------------
Y:\MW\Mw.cameyo.exe is not a valid Win32 application.


---------------------------
OK  
---------------------------

Is there a UI way to repackage?

 

Thanks

 



__________________


Guru

Status: Offline
Posts: 912
Date:
Permalink   
 

Please try this:

1. Save package as .dat again
2. Run mw.cameyo.exe -repackage mw.cameyo.dat
3. After success message, rename mw.cameyo.dat to mw.cameyo.old.dat (this is a precaution to preserve a backup should you need it)
4. Rename mw.cameyo.new.exe to mw.cameyo.dat



__________________
Scott

Date:
Permalink   
 

It looks like that is working.  I'll play around with it some more but so far it looks good.

 

Thanks



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard