View Single Post
  #6  
Old 18-08-2023, 11:04
XxAZAxX XxAZAxX is offline
Registered User
 
Join Date: Jul 2018
Location: LUNA
Posts: 26
Thanks: 48
Thanked 6 Times in 5 Posts
XxAZAxX is on a distinguished road
Question Bug or Error

Hi I noticed a small error or bug I don't know to be honest...

Seen and used
Windows Phone Installer - Final (New Version of Knight Compressor)

The problem is the following, I download the WPI Final then start a test installation when I finish installing (obviously everything works) but.... if I go to the system registry I notice a typo error i.e. the following comes out

DisplayIcon: C:\Games\God Of War\\GoW.exe

Which I notice there are 2 " \\ "

in the script it is set like this..

Code:
[Execs]
;Tile Caption|Exec Directory|Exec File|Shortcut Name/Action Name
AppExe1=God Of War||GoW.exe| God Of War

[Icons]
#ifdef AppExe1
// Add IconFileName: "{src}\Icon.ico"; before WorkingDir to change default exe icon.
Name: {group}\{#E1[62]}; Filename: {app}\{#E1[60]}\{#E1[61]}; WorkingDir: {app}\{#E1[60]}; Comment: {#E1[59]}; Check: CreateShortcuts;
Name: {commondesktop}\{#E1[62]}; Filename: {app}\{#E1[60]}\{#E1[61]}; IconFileName: "{app}\Icon.ico"; WorkingDir: {app}\{#E1[60]}; Check: CreateShortcuts;
So I was wondering…

If the game files are set up like this..

Game root folder\file.exe

i.e. the exe is in the root folder of the game, so basically

Code:
[Execs]
;Tile Caption|Exec Directory|Exec File|Shortcut Name/Action Name
AppExe1=God Of War||GoW.exe| God Of War
that would be fine too.. but from what I see it's not very good...

while instead if the structure of the game would be like this ..

Game root\bin\file.exe
so it should be like this..

Code:
[Execs]
;Tile Caption|Exec Directory|Exec File|Shortcut Name/Action Name
AppExe1=God Of War|bin\|GoW.exe| God Of War
it's right?

so in the log it should then appear right i.e.:

DisplayIcon: C:\Games\God Of War\bin\GoW.exe

So I wonder, what's wrong??

Thanks in advance
Reply With Quote