Inno Compiler Problem!
Blitz3D Forums/Blitz3D Programming/Inno Compiler Problem!
| ||
Hey everyone! I recently downloaded the Inno Compiler so I can give my games one of those nifty setup screens where you choose where you want to install it, etc. Well after some experimentation, I managed to get it to work, EXCEPT when I run my game from the desktop shortcut it can't locate my graphics files. When I run the .exe from the games folder though, it runs just fine. I checked the Inno help files, and it said I should specify EXACT file locations when loading my files. So instead of saying 'image = loadimage("Graphics/WERDNA.png") What should I do instead? Thanks, WERDNA |
| ||
Haven't used InnoSetup, but if you need a full path, perhaps you could tryimage = LoadImage(CurrentDir()+"Graphics\WERDNA.png") instead? That way you'd be passing an absolute path, but also leaving the option of changing it open. |
| ||
Thats what I wanted Yasha! Thanks! WERDNA (Or at least that should be what I wanted. I'll test it and see :) |
| ||
It still doesn't work :( Same problem. If I run the .exe from the folder its fine, if I use the shortcut it can't find the folders. I think I need someone who has had experience using Inno. Although thanks for giving it a try Yasha, its much appreciated :) EDIT: I got it fixed :) I found a way in Inno to set the 'Start in' field to the application directory. WERDNA |
| ||
In InnoSetup, 'workingdir: {appdir}' is what you want, IIRC. |
| ||
Just wondering also, are you using a moleboxed .exe |
| ||
Thanks Gfk :) 'workingdir: {appdir}' is exactly how I fixed it. And I'm just using a normal .exe The problem was that Inno setup doesn't by default set the 'start in' field for shortcuts, so windows picks one.(Usually the wrong one :) Thanks everyone! WERDNA |