Hello,

 

I have the following code to create an URL shortcut on Desktop:

 

<IniFile Id="launchFromDesktop" Action= "addLine"
Directory="DesktopFolder" Name="MyHome.url" Key="URL"
Section="InternetShortcut" Value="http://localhost:[HTTP_PORT]"/>

 

This works well for a new install. But when I do an upgrade
install(major upgrade), the URL keeps using the old port. For example,
the first time install 8080 was entered as the http port. Perform
upgrade install, and enter 6060 as the http port. The registry and
configuration file are all updated correctly, but the shortcut was still
"http://localhost:8080 <http://localhost:8080/> ". The following is
related section from the install log file. From there I don't see how
the old port gets used again. 

 

MSI (s) (68:D4) [16:25:05:184]: Executing op:
ActionStart(Name=WriteIniValues,Description=Writing INI files
values,Template=File: [1],  Section: [2],  Key: [3], Value: [4])

Action 16:25:05: WriteIniValues. Writing INI files values

MSI (s) (68:D4) [16:25:05:184]: Executing op:
ProgressTotal(Total=2,Type=1,ByteEquivalent=13200)

MSI (s) (68:D4) [16:25:05:184]: Executing op:
IniFilePath(File=MyHome.url,Folder=C:\Documents and Settings\All
Users\Desktop\)

MSI (s) (68:D4) [16:25:05:184]: Executing op:
IniWriteRemoveValue(Section=InternetShortcut,Key=URL,Value=http://localh
ost:6060,Mode=0)

WriteIniValues: File: MyHome.url,  Section: InternetShortcut,  Key: URL,
Value: http://localhost:6060

MSI (s) (68:D4) [16:25:05:184]: Executing op:
ActionStart(Name=InstallServices,Description=Installing new
services,Template=Service: [2])

 

 

I'm really appreciated if somebody can point me out what I'm doing
wrong.

 

Thanks.

 

Li 

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to