Game Development Community

Inno shortcut problem

by JuanMa · in Technical Issues · 04/17/2006 (12:40 am) · 2 replies

So I this is the first time I am using inno, I think is great, and it install my mod right, but when I try to launch the game using the shortcuts from the start menu or from the desktop I get an error message:

- "Failed to open "main.cs" ".

I can fix this problem manually by modifying the shortcut properties, adding the path "L:\Program_Files\Game_Dir\" to the "Start in:" field..... But I (or the user of the program) shouldn't do this, the setup program should do it.

Is there a way to fix/correct this problem within the Inno script?

Thank you

kjm

#1
04/17/2006 (12:12 pm)
You need to set the WorkingDir:

[Icons]
Name: "{group}\MyProgramGroup"; Filename: "{app}\MyApp.exe"; WorkingDir: "{app}"
#2
04/18/2006 (10:42 am)
That worked just fine :D

Thank you