This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Web Shortcut problem in Installshield 2009
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 12, 2009
09:44 AM
Web Shortcut problem in Installshield 2009
I am using a Basic MSI configuration in my project.
I want to add a shortcut to a HTTPS website on the target local machine.
the site is
https://[MACHINENAME]/Admin/homepage.aspx
where [MACHINENAME] is the name of the server.
In other words I want to dynamically change
https://[MACHINENAME]/Admin/homepage.aspx
to
https://TomsServer/Admin/homepage.aspx or whatever the server is named.
How do I go about doing this? Thanks all.
I want to add a shortcut to a HTTPS website on the target local machine.
the site is
https://[MACHINENAME]/Admin/homepage.aspx
where [MACHINENAME] is the name of the server.
In other words I want to dynamically change
https://[MACHINENAME]/Admin/homepage.aspx
to
https://TomsServer/Admin/homepage.aspx or whatever the server is named.
How do I go about doing this? Thanks all.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 12, 2009
12:14 PM
There is a built-in [ComputerName] property you can use.
(Windows Installer has no built-in support for Internet shortcuts, but please see the help topic "Creating Internet Shortcuts" for one option.)
(Windows Installer has no built-in support for Internet shortcuts, but please see the help topic "Creating Internet Shortcuts" for one option.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2009
08:31 AM
RobertDickau wrote:
There is a built-in [ComputerName] property you can use.
(Windows Installer has no built-in support for Internet shortcuts, but please see the help topic "Creating Internet Shortcuts" for one option.)
Hi Robert,
"Creating Internet Shortcuts" is not the solution because it is not dynamic.
A lot of applications use HTTPS web for their user interfaces as a replacement for MFC or VB. This allows the application to be usable from other computers.
Even Wise for Windows Installer has functionality to get over the problem of creating Dynamic URL shortcuts. I know because I have used Wise in previous versions of our product.
This is a real shortcoming of Installshield.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2009
08:51 AM
A .url file is really an INI file, so perhaps using that view might help; and inside an INI file you can use the expression [ComputerName], and it will be expanded to the property value at run time.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 18, 2009
10:37 AM
Although it is a serious flaw in Installshields functionality, it can be done in Installscript. Although it is not ideal.:(
First put a default shortcut into the Support folder.
Then run this script to install it onto the desktop.
MsiGetProperty(hMSI, "SUPPORTDIR", szSupportDir, nLength);
MsiGetProperty(hMSI, "DesktopFolder", szDesktopDir, nLength);
szSupportFile = szSupportDir + "\\HomePage.url";
szDesktopFile = szDesktopDir + "\\HomePage.url";
nBufferSize = 101;
GetComputerName( szComputerName , nBufferSize );
strURL = "URL=https://";
strURL = strURL + szComputerName;
strURL = strURL + "/Company/App/Homepage/Welcome.ASPX";
nError = FileInsertLine(szSupportFile, strURL, 1, REPLACE);
nError = CopyFile(szSupportFile, szDesktopFile);
First put a default shortcut into the Support folder.
Then run this script to install it onto the desktop.
MsiGetProperty(hMSI, "SUPPORTDIR", szSupportDir, nLength);
MsiGetProperty(hMSI, "DesktopFolder", szDesktopDir, nLength);
szSupportFile = szSupportDir + "\\HomePage.url";
szDesktopFile = szDesktopDir + "\\HomePage.url";
nBufferSize = 101;
GetComputerName( szComputerName , nBufferSize );
strURL = "URL=https://";
strURL = strURL + szComputerName;
strURL = strURL + "/Company/App/Homepage/Welcome.ASPX";
nError = FileInsertLine(szSupportFile, strURL, 1, REPLACE);
nError = CopyFile(szSupportFile, szDesktopFile);
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)