File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed
packages/advanced-installer.vm Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <package xmlns =" http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" >
3+ <metadata >
4+ <id >advanced-installer.vm</id >
5+ <version >22.9.0.20250729</version >
6+ <authors >Caphyon Ltd.</authors >
7+ <description >Advanced Installer is a Windows installer authoring tool that can be used to analyze MSI files.</description >
8+ <dependencies >
9+ <dependency id =" common.vm" version =" 0.0.0.20250206" />
10+ </dependencies >
11+ <tags >Packers</tags >
12+ </metadata >
13+ </package >
Original file line number Diff line number Diff line change 1+ $ErrorActionPreference = ' Stop'
2+ Import-Module vm.common - Force - DisableNameChecking
3+
4+ $toolName = ' Advanced Installer'
5+ $category = VM- Get-Category ($MyInvocation.MyCommand.Definition )
6+
7+ $msiUrl = " https://www.advancedinstaller.com/downloads/22.9/advinst.msi"
8+ $msiSha256 = " 2b34e8f584b952d0f49753a5bedd78b24c478915a7c82b5142953bfce23dfc28"
9+
10+ $toolDir = Join-Path ${Env: ProgramFiles(x86)} $toolName
11+ $executablePath = Join-Path $toolDir " bin\x86\advinst.exe"
12+
13+ VM- Install-With - Installer - toolName $toolName - category $category - fileType " MSI" - silentArgs " APPDIR=`" ${toolDir} `" /qn /norestart" - executablePath $executablePath - url $msiUrl - sha256 $msiSha256
14+
15+ $desktopShortcutPath = " ${Env: HomeDrive} \Users\*\Desktop\$toolName *.lnk"
16+ Remove-Item - Path $desktopShortcutPath - ErrorAction SilentlyContinue - Force
Original file line number Diff line number Diff line change 1+ $ErrorActionPreference = ' Continue'
2+ Import-Module vm.common - Force - DisableNameChecking
3+
4+ $toolName = ' Advanced Installer'
5+ $category = VM- Get-Category ($MyInvocation.MyCommand.Definition )
6+
7+ VM- Uninstall $toolName $category
You can’t perform that action at this time.
0 commit comments