Doron
November 9, 2022, 6:24am
1
Hi
I tried to install Msi file with the command of Execute-ProcessAsUser:
Execute-ProcessAsUser -Path "$envSystem32Directory\msiexec.exe" -Parameters "/i `"\\servername\filename.msi`" " -wait
I got the message: error record at c:\windows\ccmcache\gv\appdeploytoolkit\appdeploytoolkitmain.ps1:11632 char:13 throw "specified path does not exist [$path].
How can I fix it?
Doron
before the Execute-ProcessAsUser
command, copy the MSI in a USER-ACCESSIBLE location
Then Modify the Execute-ProcessAsUser
command to use the copy.
Maybe it has the same issue has New-Shortcut.
When running from a share there is a “bug”.
Pulled my hair out for a while when new-shortcut kept giving me the error "Specified path [“Path to my shortcut.lnk”] is not valid. The path was correct, and I tried every syntax alteration I could think of. Even just tried putting it to the root of C: to see if it would work. After successfully using my own shortcut script in PS with wscript.shell to create a shortcut with the same path, I knew something was wrong. After checking the new-shortcut function in AppDeployToolkitMain.ps1, on lin…