Error during virtual machine configuration: shared folders. - Advanced Installer Community
Bobtb
Posts: 4
Joined: Wed Aug 27, 2014 10:33 am

Error during virtual machine configuration: shared folders.

Hello,

I'm running the trial version of Advanced Installer and I'm running into this problem.
Whenever I try to repackage using VMware, I get this error message:

Code: Select all

Error during virtual machine configuration: shared folders.
I found another topic in this forum, but none of the possible solutions works for me.
I installed AI outside the default installation path, E:\Program Files (x86)\...
The Output Path exists both on the host and guest OS'es.

After the failed operation, I can see there's a Shared Folder left over, E:\Program Files (x86)\Caphyon\Advanced Installer 11.4.1.
Removing this and trying again does not work.
Could the problem be related to the location of the Setup Path?

Host OS: Windows 7 64bit SP1, English
Guest OS: Windows 7 32bit SP1, English
VMware: Workstation 10.0.1, build-1379776
VMware-Tools: 9.6.1, build-1378637 (comes with Workstation 10)

Guest OS settings:
Shared Folders: Always Enabled, Map as a network drive in Windows guests enabled (also tried with this unchecked)
Autologin: Disabled
Rest default settings and the guest OS is a clean Windows 7 installation with a clean snapshot while logged in.

I have attached the vmx file.
Attachments
Windows 7.vmx.txt
(3.02 KiB) Downloaded 382 times
Bobtb
Posts: 4
Joined: Wed Aug 27, 2014 10:33 am

Re: Error during virtual machine configuration: shared folde

I decided to do a little troubleshooting myself, using procmon (from SysInternals).
When AI was close to proceeding with its supposed task in VMware Workstation, I noticed the repackager was unable to create a folder and access a registry key.
After creating this folder and registry key I tried again and lo and behold, the VM is capturing the software installation as we speak!

So, in order to help future users that encounter the same problem, here is what I did:
Create the folder:
C:\Users\<username>\AppData\Roaming\Caphyon\Advanced Installer\repackager
The bold part was missing.

Then create the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Offload
Again, the bold part was missing on my system.

After doing this, the software seems to function properly.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error during virtual machine configuration: shared folde

Hi Bob,

Thanks for trying out Advanced Installer and sharing your solution with our users.

We just finished testing the VMX and it worked for us, most likely because the folder and registry entry where there.

We'll look into it and see why you encountered this situation, so we can better control this situation in the future.

UPDATE

The registry key mentioned is not related to our repackager, its most likely a coincidence of resource accessing.

The folder path is indeed required, we cannot say exactly why the repackager failed to create it. Maybe some special permissions
were existing on the root folders from that path, which prevent the repackager from creating the folders.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bobtb
Posts: 4
Joined: Wed Aug 27, 2014 10:33 am

Re: Error during virtual machine configuration: shared folde

Hi Bogdan,

It's good to see you guys are actively trying to figure out where it went wrong!

There are no special permissions on the folder location, it's part of my Windows profile and the permissions are all default.
I have no idea why it failed, but I'm assuming the folder "C:\Users\<username>\AppData\Roaming\Caphyon\Advanced Installer" was supposed to be created during installation and somehow it was not. I can imagine the software failed to create the subfolder repackager because its parent was missing.

To be honest, I kinda thought the registry key was unrelated, but it was one of the 2 changes I've made and I didn't test it without creating that key.
I'm glad things are working now, so I can actually test your promising software!

Thanks for the heads up!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error during virtual machine configuration: shared folde

Hi Bob,

Actually we found the problem with the folder not being created, just a bug in our logic that we missed.

The folder should not be created when you install Advanced Installer, the Repackager has the job to create it. But we had one scenario where we
consider its creation is not necessary, and that is where the bug was :) (its not the problem that the parent folder does not exist, we are in the game of packaging
for too long to hit that know)

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”