PcExpert Posted April 21, 2006 Share Posted April 21, 2006 (edited) Hello, I have made a program that reads lots of things out an ini file. If I just start the program by going to the directory where it is placed, it starts and the ini is doing his work. But now my problem, I have made a setup program using innosetup. But if I now go to the start menu folder that the installer has created, it doesn't read it. Even my desktop shortcut will not be able to read the ini file and display the info correctly. What's wrong? Kind Regards, PcExpert Edited April 21, 2006 by PcExpert Link to comment Share on other sites More sharing options...
Developers Jos Posted April 21, 2006 Developers Share Posted April 21, 2006 Hello,I have made a program that reads lots of things out an ini file. If I just start the program by going to the directory where it is placed, it starts and the ini is doing his work. But now my problem, I have made a setup program using innosetup. But if I now go to the start menu folder that the installer has created, it doesn't read it. Even my desktop shortcut will not be able to read the ini file and display the info correctly. What's wrong?Kind Regards,PcExperti would say the working directory is not correct... but a script example would help..Use a full path to the ini file.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
dabus Posted April 21, 2006 Share Posted April 21, 2006 Check read/write-settings of the dir, the link, the ini. Can you enter the dir via cmd and start the command? Have you tried adding ToolTips or sth like that to get errors/output? Link to comment Share on other sites More sharing options...
PcExpert Posted April 21, 2006 Author Share Posted April 21, 2006 My script completely works. When you'll start it by clicking on the desktopshortcut or via the startmenu folder it doesn't work anymore. So it only works if you'll run it by clicking on the exe. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 21, 2006 Developers Share Posted April 21, 2006 My script completely works. When you'll start it by clicking on the desktopshortcut or via the startmenu folder it doesn't work anymore. So it only works if you'll run it by clicking on the exe.yes... thats what you said before... did you do anything with the comments made ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ChrisL Posted April 21, 2006 Share Posted April 21, 2006 iniread (@scriptdir & "myInifile.ini","section", "key", "default" ) [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
GaryFrost Posted April 21, 2006 Share Posted April 21, 2006 iniread (@scriptdir & "myInifile.ini","section", "key", "default" ) iniread (@scriptdir & "\myInifile.ini","section", "key", "default" ) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
PcExpert Posted April 21, 2006 Author Share Posted April 21, 2006 Not yet, because I think that if you run it by clicking on the exe it will not work then. Is that true? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now