I have a problem that I cannot seem to resolve. When I try to run my installer via vba in a VMware workstation virtual machine, it gives me "Invalid Procecedure Call or Argument Error". This happens only inside a VM. The installer itself works perfectly when not called via the shell command. The shell command also works without error outside of the VM in Host OS (Windows 7). Strangely enough when I call other .exe files via shell inside the VM they work fine, leading me to believe the problem lies with my installer. See examples below. Any help would be appreciated.
Does not work inside any VM.
Private Sub sftp_runInstaller()
Dim x As Variant
Dim Path As String
Path = "C:\weekly work schedule files\installers\WeeklyWorkScheduler7.2.4_Installer.exe"
x = Shell(Path, vbNormalFocus)
End Sub
Works fine inside vm
Private Sub sftp_runInstaller()
Dim x As Variant
Dim Path As String
Path = "C:\windows\system32\mspaint.exe"
x = Shell(Path, vbNormalFocus)
End Sub
FOLLOW US
Get the latest news in Application Packaging