Code: Select all
$projObject = Get-Content .\package.json | Out-String | ConvertFrom-Json;
$projName = "<private>";
$PROJDIR = "$($env:HOMEDRIVE)\$($env:HOMEPATH)/Documents/Advanced Installer/Projects/$projName";
$advinst = New-Object -ComObject AdvancedInstaller
$project = $advinst.LoadProject("$PROJDIR/$projName.aip")
$project.ProductDetails.Version = $projObject.version
$project.Save();
$project.Build()
Code: Select all
ERROR:
The source folder
"Users\Users\Users\Users\Users\Users\Users\..\..\Code\Node\<snip>\bin\signatech-manager-2-win32-x64" of
the synchronized folder "APPDIR" is missing from disk. You need to either recreate the source folder path or reset the
synchronization from the "Folder Properties" dialog, in "Synchronize" tab.
At C:\Users\<snip>\Documents\Code\Node\<snip>\buid_inst.ps1:9 char:1
+ $project.Build()
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException
Code: Select all
$project.PredefinedFolders.ApplicationFolder.FullPath