This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: RenameFile fails
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2015
07:52 AM
RenameFile fails
Hi everyone,
The following is going on:
I have made custom action which runs a Installscript function to renamefile. I have used the renamefile example given in the help to change the file name.
The directory in which the file can be found is in the in [CommanAppDataFolder].
I have selected a DoAction if the finish button is pressed in the SetupComplete Dialogue. I get the notification the rename has failed, although the directory and the file that needs be changed are available.
If I have the folder and file to be changed already available before the setup is run, all things go well.
Does anybody know how I can succeed in changing the filename without having the original file on the target system?
Thanks in advance and regards,
Reza
The following is going on:
I have made custom action which runs a Installscript function to renamefile. I have used the renamefile example given in the help to change the file name.
The directory in which the file can be found is in the in [CommanAppDataFolder].
I have selected a DoAction if the finish button is pressed in the SetupComplete Dialogue. I get the notification the rename has failed, although the directory and the file that needs be changed are available.
If I have the folder and file to be changed already available before the setup is run, all things go well.
Does anybody know how I can succeed in changing the filename without having the original file on the target system?
Thanks in advance and regards,
Reza
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2015
08:29 AM
It sounds like you might be trying to make a change that requires elevated privileges. Typically actions launched from the wizard do not have such privileges, and instead such changes need to be scheduled as deferred system-context actions in the Install Execute sequence.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 26, 2015
10:23 AM
Hi Michael,
I have changed the "In-Script Execution" to Deferred Execution in System Context. The "Return Processing" is Synchronous (Check exit code).
I have placed it in the "Install Exec Sequence" After PublishProduct and set the condition to the name of the radiobutton that has to be selected.
Unfortunately this leads also to a failure. Can you be more specific regarding your solution or explain to me what's wrong with the settings mentioned above.
Regards, Reza
I have changed the "In-Script Execution" to Deferred Execution in System Context. The "Return Processing" is Synchronous (Check exit code).
I have placed it in the "Install Exec Sequence" After PublishProduct and set the condition to the name of the radiobutton that has to be selected.
Unfortunately this leads also to a failure. Can you be more specific regarding your solution or explain to me what's wrong with the settings mentioned above.
Regards, Reza
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2015
08:33 AM
It sounds like you've correctly applied the changes I was pointing to. So there must be another problem. Can you find out what's failing? For instance, watch it with process monitor to see what goes wrong. Or display the file name are you moving from and to, and check if the file is present while the message box is up.