|
|
|
|
#1 |
|
Junior Member
Join Date: May 2011
Posts: 4
|
"Error opening file for writing:"
Hello,
I have searched for the answer to this problem and have had NO luck so far. Please forgive me if I have overlooked the solution, but I am officially at a loss and don't understand the breakdown- I'm hoping someone here can shed some light on the problem. I have created an installer that was working flawlessly. However, I have started working on creating my User Guide which will have screen shots of the install which has me doing a fresh install on my test machine. I get the installer compiled and run it, which starts off fine. The problem comes when it starts writing files to disk. Apparently there is something causing (a breakdown with permissions presumably) because I get the following: code: When I skip the file, it gives the same error for the next (and each subsequent file) in the instructions. HOW can this be overcome? What have I done wrong in building my script? Please help me understand the error, how to overcome it, and how to prevent these problems in the future. Any input or advice is appreciated. Here is my file: code: |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Mar 2003
Posts: 571
|
Did you shut down your application before you tried re-running the installer?
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2011
Posts: 4
|
Indeed I did.
Uninstalled the existing install which stops the service and deletes all the files. I have confirmed that this file does not exist before running the installer. |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
For one, you need to verify that you have admin access in the .onInit function. Requestexecutionlevel does nothing on older OSes or if UAC is turned off.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2011
Posts: 4
|
Thanks for the input, I will work on making that change. However, the admin access is only necessary because of creating and running the service AND being allowed to dilate a "privileged" port. The files should all be able to be accessed and written by users so I'm not sure that this change will make much difference in resolving my issue.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|