PDA

Click to See Complete Forum and Search --> : Need help with INNO


lails786
May 24th, 2006, 08:48 AM
Hi guys,


I am a newbie with Inno and basically i have an ini file which i creatred and need to include this into my setup. all i want is to place the ini file into the application directory. I followed the help that comes with inno but it does not compile properly.


Pls Help!! :confused:

randem
May 24th, 2006, 01:46 PM
Hmmm, "Does not compile properly". Now what does that mean exactly. No wait a minute let me guess that would be even better...

Please give details of your problem. Have you looked at the Inno Third Pary Files?

{app} - Application Folder

Please Help!!

lails786
May 25th, 2006, 01:20 AM
Sorry for not bein gtoo clear!

The thing is this is my first time using inno. Anyway after workign with it for a while i kind of figured out whats going on, but i still have a problem.

Let me explain, i had a compiled iss file and a working setup. Then i needed to create a text file (with .ini extension) for my project (it aint a readme netiher is it an ini file, just a text file), so i added this into the iss file using inno (added in [files] section). Now I compiled and it completed, then i ran the setup which goes through, how ever it does not create all the registry entries that it is supposed to and when i try to use the application that i installed with the setup it fails and then when i try to uninstall i get an error first and if click ok then in uninstalls. The error states: "Sorry, an error occurred during uninstall. Please try again. -2147418113

I know that it is this text file that i added that is causing the problem. Not sure if it is because of the extension of the file.

I hope this helps you a bit more.

randem
May 25th, 2006, 02:29 AM
It is impossible that a text file can cause that kind of havok. Let's see your script. I imagine you did it by hand. What registry entries are you referring too?

How did you find all the dependencies for your project?

lails786
May 25th, 2006, 08:30 AM
Hi again



Ok, I now know what was the causing the problem.
Firstly about he script itself, i did not write the original, I awas just adding the text file to it.

Anyway, this app is a PC router, which had some url and other data hard coded, therefore i created a text file with this data and then added a module to read teh text file andretrieve the appropriate data. now the class mosule which had the hard coding also had to changed to make calls to teh new mosule to get the information it needed.
If i remove these new lines of code and uncomment the old hard coding lines , and rebuild (keeping the new module in the proj). Then i run the inno setup with this new exe (proj.exe) and the txt file. And guess What, the setup installs properly.

Can you help here. I know the project compiles with no errors and builds fine too. dont understand how this could be affecting the setup!

randem
May 25th, 2006, 02:05 PM
Well, what do you want us to do Since you didn'tt post your script or your code. Are we supposed to already know what everything looks like?

Post some code, your script and and explanaition as to where you think the problem is. It is possible you can get some help...