/build/static/layout/Breadcrumb_cap_w.png

Systems Management Question


Q)How handle URL in .msi (Application pakaging)

12/04/2019 334 views

Ex: if i have some url   www.google.com how i include in .msi 

if i launch a shortcut it will directly open www.google.com


0 Comments   [ + ] Show comments

Comments


All Answers

1

If you are using a raw MSI editor like Orca or InstEd you can do this with the IniFile-table.

Here is described how it works: https://www.flexerasoftware.com/blog/software-installation/2016/06/how-to-create-an-internet-shortcut-with-installshield/

I made an example and added a desktop shortcut to the MSI of CDBurnerXP. You can achieve this directly in the MSI or create/edit an MST.

If you prefer a more comfortable way you may want to take a look at Advanced Installer to create MSIs like that. It's free for basic features.


Here is my example Google-shortcut:

2Q==


The values explained:

IniFileNeeds to be some unique value for each row. You can make one up.
FileNameThis is what your Link's name will be. So my shortcut here will be named "Google".
DirPropertyWhere you want to place the shortcut. Refer to the directory table of your MSI. "DesktopFolder" will be the All-Users-Desktop.
SectionThis needs to be "InternetShortcut" for our purposes.
KeyThis needs to be "URL" for our purposes. 
ValueEnter the desired target URL here.
ActionNo action needed, so set it to "0".
ComponentThis is important: you need to bind your shortcut to an existing component of your MSI setup (or create one, which is quite more difficult in a raw editor).
If you want to force your shortcut, bind it to a component that is forced to local install.
Answered 12/05/2019 by: chrpetri
Blue Belt

1

I would avoid tying a software installer to a shortcut if possible. You could simply use a Powershell script pushed from Kace to put a shortcut to your URL on all users' desktop.

This would do so:


If (-not (Test-Path $env:PUBLIC\Desktop\Google.lnk)) {
    $TargetFile = "https://www.google.com"
    $ShortcutFile = "$env:PUBLIC\Desktop\Google.lnk"
    $WScriptShell = New-Object -ComObject WScript.Shell
    $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
    $Shortcut.TargetPath = $TargetFile
    $Shortcut.Save()
}
Answered 12/05/2019 by: isudothings
Senior Purple Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ