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
- :
- Exclusively locking a file in InstallScript function
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
‎Nov 03, 2009
06:04 AM
Exclusively locking a file in InstallScript function
I have a file in support directory which i need to lock exclusively for the time of the installation.The contents of this file should not be compromised with nor the file to be deleted.
I have not come across any function in Installscript yet which allows me to get an exclusive lock to a file.
The C runtime library does provide functions to accomplish the same. However when i try loading the C runtime library dll's using UseDll, i get the following runtime error:
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
I googled about the same and it suggests that the manifest files are missing. However even with the manifest files, i cannot get the runtime library msvcr90.dll to load.
Has anybody ever tried calling runtime library functions before?
Any help would be very much appreciated.
I have not come across any function in Installscript yet which allows me to get an exclusive lock to a file.
The C runtime library does provide functions to accomplish the same. However when i try loading the C runtime library dll's using UseDll, i get the following runtime error:
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
I googled about the same and it suggests that the manifest files are missing. However even with the manifest files, i cannot get the runtime library msvcr90.dll to load.
Has anybody ever tried calling runtime library functions before?
Any help would be very much appreciated.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2009
02:56 AM
Hope, instead of UseDLL try using CallDLL function since you can specify the function parameters too in this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 05, 2009
06:05 AM
Thanks. That is something which i can try. However installshield 2009 recommends not using it. It recommends loading the dll using UseDll and then using the functions within it. So i was trying to load the msvr90.dll and use its functions.
Have you ever tried this approach?
Have you ever tried this approach?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 06, 2009
06:34 AM
Yes I have created a custom DLL and tried to import the functions. That was created with InstallShield 11....
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2009
01:13 AM
Actually what i meant was, have you ever tried loading the vc runtime dll using UseDll and tried consuming the functions in installscript?
What are the other options i could explore? I want to avoid exporting functions from an external dll(that would be my last resort)
What are the other options i could explore? I want to avoid exporting functions from an external dll(that would be my last resort)
