Shortcuts
New-Installer -ProductName "My App" `
-Manufacturer "Example Company" `
-UpgradeCode "66ad7f2c-e176-4a91-b73b-5dced490ec67" `
-OutputDirectory ".\output" `
-Content {
New-InstallerDirectory -PredefinedDirectoryName "LocalAppDataFolder" -Content {
New-InstallerDirectory -DirectoryName "My App" -Id "INSTALLFOLDER" -Content {
New-InstallerFile -Source ".\MyApp.exe" -Id "MyAppExe"
}
}
New-InstallerDirectory -PredefinedDirectoryName "DesktopFolder" -Content {
New-InstallerShortcut -Name "My App" `
-FileId "MyAppExe" `
-Description "Launch My App" `
-IconPath ".\app.ico" `
-WorkingDirectoryId "INSTALLFOLDER" `
-Arguments "--profile default" `
-Show "normal"
}
}Last updated