Sign in to follow this  
Followers 0
PcExpert

Ini Read Fails

8 posts in this topic

#1 ·  Posted (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 by PcExpert

Share this post


Link to post
Share on other sites



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

i would say the working directory is not correct... but a script example would help..

Use a full path to the ini file....


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

Not yet, because I think that if you run it by clicking on the exe it will not work then. Is that true?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0