very good tutorial but there is a small problem.i created the setup file using inno setup compiler and insatalled the Myapp as per your guide above but on launching it, i am getting the following error.
"Error while opening the settings file, Application will terminate immediately"
In which folder did you install the app?
In the tutorial I did not explain how to grand the admin right to your application.
You grant all rights to your application folder, and launch it again. You can also add it to your PATH.
I installed the Myapp from the setp file created using inno setup compiler in Program files as per the tutorial and i am running windows xp SP3. But inside program files i am not getting any option to grand rights.
You can try this process:
You must have ownership of a protected folder in order to access it. If another user has restricted access and you are the computer administrator, you can access the folder by taking ownership.
To take ownership of a folder, follow these steps:
Right-click the folder that you want to take ownership of, and then click Properties.
Click the Security tab, and then click OK on the Security message (if one appears).
Click Advanced, and then click the Owner tab.
In the Name list, click your user name, or click Administrator if you are logged in as Administrator, or click the Administrators group. If you want to take ownership of the contents of the folder, select the Replace owner on subcontainers and objects check box.
Click OK, and then click Yes when you receive the following message:
You do not have permission to read the contents of directory folder name. Do you want to replace the directory permissions with permissions granting you Full Control?
All permissions will be replaced if you click Yes.
Note folder name is the name of the folder that you want to take ownership of.Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.
Source: Microsoft Support
hi, thanx for this nice tutorial. There is a problem when i was creating application with it i m unable to setting up the database connection. Please help me
i downloaded the sample project ' hpm setup 'as per your last comment.i installed the setup but the application is not starting.Any help?
i am running windows xp SP3.
Ankur Lakhani, Install it in "My Documents" or "Desktop". Now try to follow the steps I mensioned above to give right the application folder. Or right click on the `launcher' and run it as administratror.
Hello there,i installed it on the desktop and followed your directions regarding taking the ownership of the folder but its still not starting.Any help?
Ok, let me check the application again. If any news I will sent it to everyone to inform you of the update.
@zooboole here is the fix i found: instead of drag and drop files to Innosetup, click 'Add folder' option and select root folder ( i.e, our MyApp folder itself - also confirm the dialog for including sub folders ).
drap and drop ( i.e, selecting folders and files inside MyApp folder ) is the trouble maker. while we install our .exe application, folder structure inside the MyApp is lost compared to our original version.
I would like to checkout your sample project hpm. let us know once you fix the setup file and update the link :)
Thanks @Rinas, I have followed your process and it seems to be working fine. You can download the new setup of the
hpm application I gave.
Hello there, i downloaded the new setup but on extracting,it gives an error about the file format damage.Can you please reupload the file and check the same?
Sorry @Ankur Lakhani My internet did not allow me to upload the file. But now I think it's OK. Check it out if any thing please let me know. I will also sent a message to inform everyone about it.
Hello there, i downloaded it again through your mail.when installed, it starts but it gives the following error.
"Error 500: Internal Server Error Cannot spawn CGI process [C:\Program Files\hpm\app/index.php]: No such device or address".
Mongoose may have a problem spawning CGI process when there is a space character in path on Windows, So I suggest you try installing it in a different folder that doesn't have spaces in its name.