Skip to content

Commit c0ee54d

Browse files
authored
Merge pull request #1465 from d35ha/advanced-installer
Add advanced-installer.vm
2 parents 2385e87 + dfb57d0 commit c0ee54d

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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

0 commit comments

Comments
 (0)