Using $InstallDir$ in linkfolder_install [solved]

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Using $InstallDir$ in linkfolder_install [solved]

Beitrag von SisterOfMercy »

The icon for the Total Commander shortcut doesn't quite work.

Bild
Apparently windows can't quite figure out where to look, because it's too dumb to think what %systemdrive% is..?

A part of the setup file:

Code: Alles auswählen

DefVar $InstallDir32$
DefVar $InstallDir64$

Set $InstallDir32$      = "%ProgramFiles32Dir%\totalcmd"
Set $InstallDir64$      = "%ProgramFiles64Dir%\totalcmd"

if ($INST_SystemType$ = "64 Bit System") 
	Message "Installing " + $ProductId$ + "..."
	comment "Start setup program"
	Winbatch_install_64
	Sub_check_exitcode
	comment "Copy files"
	Files_install_64 /64Bit
	comment "Patch Registry"
	Registry_install /64Bit
	Registry_install_AllProfiles /AllNTUserDats
	comment "Create shortcuts"
	LinkFolder_install_64
endif

[LinkFolder_install_64]
set_basefolder common_desktopdirectory
set_subfolder ""
set_link
	name: Total Commander 64 Bit
	target: "$InstallDir64$\Totalcmd.exe"
	parameters:
	working_dir: $InstallDir64$
	icon_file: "$InstallDir64$\Totalcmd.exe"
	icon_index: 0
end_link
Logfile is here:
http://www.gcecad-service.nl/downloads/instlog-tc.txt

Of course I can work aroud it, but it seems strange this won't work. :(
Zuletzt geändert von SisterOfMercy am 04 Apr 2014, 13:02, insgesamt 1-mal geändert.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
dkoch
Beiträge: 309
Registriert: 25 Nov 2011, 14:03

Re: Using $InstallDir$ in linkfolder_install

Beitrag von dkoch »

Provide an icon instead.
http://www.nirsoft.net/utils/iconsext.html

By the way where is %SystemDrive% comming from? $InstallDir64$ iterates to "C:\Program Files\totalcmd" according to your logs
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Using $InstallDir$ in linkfolder_install

Beitrag von SisterOfMercy »

dkoch hat geschrieben:By the way where is %SystemDrive% comming from? $InstallDir64$ iterates to "C:\Program Files\totalcmd" according to your logs
I wouldn't know! :|
dkoch hat geschrieben:Provide an icon instead.
http://www.nirsoft.net/utils/iconsext.html
Thanks, this is a lot easier than an other workaround! :-)
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Using $InstallDir$ in linkfolder_install

Beitrag von SisterOfMercy »

dkoch hat geschrieben:Provide an icon instead.
http://www.nirsoft.net/utils/iconsext.html
This gives the same result unfortunately :(
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: Using $InstallDir$ in linkfolder_install [solved]

Beitrag von SisterOfMercy »

@$%$*$(&*(*&!&**!!! :evil: :x :oops:

totalcmd.exe does not exist in the 64-bit installation... It is totalcmd64.exe
Mea culpa, mea maxima culpa!
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten