SimonWhitaker
Posts: 2
Joined: Wed Sep 07, 2005 11:19 am

URL Shortcuts not showing in AI 3.2

This issue concerns the "Files and Folders" view of Advanced Installer Freeware 3.2.

If I add a URL shortcut to a folder under the Start Menu tree (right-click in the folder contents pane and choose New Shortcut To > URL...), the shortcut appears there as expected, but the next time I load my project into Advanced Installer it is missing. It is clearly still there, as it does get installed if I re-build and run the project - I just can't see it in Advanced Installer, and hence can't delete it. This is a problem, because when I noticed that the URL had disappeared from AI I re-created it, and now I have two URL shortcuts being installed, with no way of deleting one of them. Neither of the URLs show up when I look in AI.

I did a run with logging and can see the URL shortcuts being written to the Start Menu:

Code: Select all

MSI (s) (38:10) [11:15:47:465]: Executing op: IniFilePath(File=Tiab Ltd website.url,Folder=C:\Documents and Settings\All Users\Start Menu\Programs\Tiab Ltd\)
MSI (s) (38:10) [11:15:47:558]: Executing op: IniWriteRemoveValue(Section=InternetShortcut,Key=URL,Value=http://www.tiab.co.uk/,Mode=0)
WriteIniValues: File: Tiab Ltd website.url,  Section: InternetShortcut,  Key: URL, Value: http://www.tiab.co.uk/
MSI (s) (38:10) [11:15:47:668]: Executing op: IniWriteRemoveValue(Section=InternetShortcut,Key=WorkingDirectory,Value=C:\Documents and Settings\All Users\Start Menu\Programs\Tiab Ltd\,Mode=0)
WriteIniValues: File: Tiab Ltd website.url,  Section: InternetShortcut,  Key: WorkingDirectory, Value: C:\Documents and Settings\All Users\Start Menu\Programs\Tiab Ltd\
MSI (s) (38:10) [11:15:47:793]: Executing op: IniFilePath(File=Go to Tiab Website.url,Folder=C:\Documents and Settings\All Users\Start Menu\Programs\Tiab Ltd\)
MSI (s) (38:10) [11:15:47:840]: Executing op: IniWriteRemoveValue(Section=InternetShortcut,Key=URL,Value=http://www.tiab.co.uk/,Mode=0)
WriteIniValues: File: Go to Tiab Website.url,  Section: InternetShortcut,  Key: URL, Value: http://www.tiab.co.uk/
MSI (s) (38:10) [11:15:48:012]: Executing op: IniWriteRemoveValue(Section=InternetShortcut,Key=WorkingDirectory,Value=C:\Documents and Settings\All Users\Start Menu\Programs\Tiab Ltd\,Mode=0)
WriteIniValues: File: Go to Tiab Website.url,  Section: InternetShortcut,  Key: WorkingDirectory, Value: C:\Documents and Settings\All Users\Start Menu\Programs\Tiab Ltd\
MSI (s) (38:10) [11:15:48:152]: Executing op: ActionStart(Name=RegisterProduct,Description=Registering product,Template=[1])
dorel
Posts: 25
Joined: Mon Oct 18, 2004 8:13 am

Hi Simon
You are right this is a bug, Files view ignores Url shortcuts on load. You can delete the row by manually editing the .aip file.
This problem will be fixed in the feature version. If this is very important for you send us your email at: support at advancedinstaller dot com
and we will send you a fixed version.
Regards!
Dorel Pislan
Advanced Installer Team
http://www.advancedinstaller.com
SimonWhitaker
Posts: 2
Joined: Wed Sep 07, 2005 11:19 am

dorel wrote:You are right this is a bug, Files view ignores Url shortcuts on load. You can delete the row by manually editing the .aip file.
Dorel,

Many thanks for the rapid response.

I'm happy to edit the .aip file. If I open it in a text editor and search for instances of the word "Website" (which appears in the name for the shortcut), I find it only in this section:

Code: Select all

  <COMPONENT cid="caphyon.advinst.msicomp.MsiIniFileComponent">
    <ROW IniFile="URL" FileName="TiabLt~1.url|Tiab Ltd website.url" DirProperty="New_Folder_DIR" Section="InternetShortcut" Key="URL" Value="http://www.tiab.co.uk/" Action="0" Component_="LabVIEW_Files"/>
    <ROW IniFile="URL_1" FileName="GotoTi~1.url|Go to Tiab Website.url" DirProperty="New_Folder_DIR" Section="InternetShortcut" Key="URL" Value="http://www.tiab.co.uk/" Action="0" Component_="LabVIEW_Files"/>
    <ROW IniFile="WorkingDirectory" FileName="TiabLt~1.url|Tiab Ltd website.url" DirProperty="New_Folder_DIR" Section="InternetShortcut" Key="WorkingDirectory" Value="[New_Folder_DIR]" Action="0" Component_="LabVIEW_Files"/>
    <ROW IniFile="WorkingDirectory_1" FileName="GotoTi~1.url|Go to Tiab Website.url" DirProperty="New_Folder_DIR" Section="InternetShortcut" Key="WorkingDirectory" Value="[New_Folder_DIR]" Action="0" Component_="LabVIEW_Files"/>
  </COMPONENT>
Presumably I just need to delete the lines starting <ROW IniFile="URL_1" and <ROW IniFile="WorkingDirectory_1"?
dorel
Posts: 25
Joined: Mon Oct 18, 2004 8:13 am

Hi Simon
URL shortcuts are actually ini files. An ini file is defined by multiple entries(rows) in IniFileTable. To delete the URL shortcut you must delete all the ini rows that have as name the name of your shortcut and as directory the directory were you placed the shortcut - exactly the rows that you found in your serach.
Regards!
Dorel Pislan
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”