If for some reason you cannot fix this at the application level, you can tell Inno Setup to set the "Start In" field by adding "WorkingDir: " to your entries. To get the full path of a file named "File.txt" in the application directory, use: ExtractFilePath(ParamStr(0)) + 'File.txt'. In Delphi or C++Builder, for example, it's possible to get the full pathname of the directory containing the application EXE by calling: ExtractFilePath(ParamStr(0)). closed the Word document yet, you can use the Undo Shortcut to reverse a save action. Properly designed GUI applications should not expect to be started from a particular directory they should always specify full pathnames on files they open. Implemented Unlimited Undo + Redo for all actions performed in designer (also creating / deleting controls), with default shortcuts Ctrl + Z / Ctrl + R Added. 1.) Right click a script, select Create shortcut: 2.) Right click the shortcut, select Properties: 3.) The Target field under Shortcut tab shows full path to file this shortcut will open: 4.) In this example case now, Ive made a shortcut for USBUpdate.ps1 script made in this tutorial. You can also rightclick a folder to recover all its contents. In virtually all cases, this is something that should be corrected at the application level. Inno Setup by default does not set the "Start In" field on shortcuts its creates this causes Windows to pick a directory itself, which usually won't be the directory containing your application. Source code tips - If you modify the Setup or SetupLdr projects and want to be able to compile your installations with the new code, youll need to copy the new EXE file(s) to the Setup Compiler directory under the extension.It works fine when I double-click the application's EXE in Explorer.Ī: Your application is most likely not specifying pathnames on the files it is trying to open, so it is expecting to find them in the current directory. Q: My application can't find any of its files when it is started from the shortcut created by Setup. Increase your script flexibility with the inbuilt scripting tools & debugger. ![]() Never mind, I just found this at the Inno Setup FAQ. Easily access and build your Inno Setup scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |