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
- :
- set permissions on registry and files
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 23, 2007
06:29 PM
Some Target Location Runtime Variables are not defined
I have two file sets. The Target Location of the first one is set to $[OSFolder], that of the second one to $[CommonAppDataFolder]
When I run the unit test, I get:
Unit Test: ISDEV : error -9034: Unable to resolve value for path variable '$[OSFolder]' in target path $[OSFolder]. The path variable is referenced in the DIM, but is not defined in the project file consuming this DIM.
If I change $[OSFolder] e.g. to $[CommonFilesFolder], it works fine again.
It seems to me, as if all variables starting with "$[OS...]" can not be used.
What is wrong ??
And: does really anyone use Collaboration ? Not much traffic in this forum ... :rolleyes:
When I run the unit test, I get:
Unit Test: ISDEV : error -9034: Unable to resolve value for path variable '$[OSFolder]' in target path $[OSFolder]. The path variable is referenced in the DIM, but is not defined in the project file consuming this DIM.
If I change $[OSFolder] e.g. to $[CommonFilesFolder], it works fine again.
It seems to me, as if all variables starting with "$[OS...]" can not be used.
What is wrong ??
And: does really anyone use Collaboration ? Not much traffic in this forum ... :rolleyes:
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 23, 2007
07:31 PM
Although I still do not know, why some of the predefines runtime variable are ok and some are not -
I found out, that I just can set these runtime variables in the runtime variables tab for the unit test to pass.
When i reference the DIM in a Basic MSI project, I can override these test settings.
I still wonder how I can set the [WindowsFolder] from the directory table for my $[OSFolder] ... it is only pssible to select public properties from the property table ...
And after hours of searching I found in the documentation ("Reviewing the Contents of a Referenced DIM "):
"For run-time variables, you must set the Value field to a hard-coded value or to a Windows Installer property. " ==> hard to believe !! :eek:
I found out, that I just can set these runtime variables in the runtime variables tab for the unit test to pass.
When i reference the DIM in a Basic MSI project, I can override these test settings.
I still wonder how I can set the [WindowsFolder] from the directory table for my $[OSFolder] ... it is only pssible to select public properties from the property table ...
And after hours of searching I found in the documentation ("Reviewing the Contents of a Referenced DIM "):
"For run-time variables, you must set the Value field to a hard-coded value or to a Windows Installer property. " ==> hard to believe !! :eek:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 23, 2007
07:34 PM
Now I found out, that you can use the directories of the directory table as values of DIM runtime variables, e.g. "[WindowsFolder]".
Why is this important issue missing in the documentation ??
:confused:
Why is this important issue missing in the documentation ??
:confused:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 23, 2007
07:46 PM
Another shocking setbacks:
- file permissions do not work:
I tried to set a file to read- and writeable for all users - but it isn't
- file attributes do not work:
I tried to set a file to "hidden" and "system", but it did not work.
- No permission settings for registry keys possible
- No setting permanent/non-permanent for registry keys possible.
That means for me: I cannot use DIMs and must go back to my InstallShield
11.5 IDE and implement it directly in the Basic MSI project ... 😞 😞 😞
- file permissions do not work:
I tried to set a file to read- and writeable for all users - but it isn't
- file attributes do not work:
I tried to set a file to "hidden" and "system", but it did not work.
- No permission settings for registry keys possible
- No setting permanent/non-permanent for registry keys possible.
That means for me: I cannot use DIMs and must go back to my InstallShield
11.5 IDE and implement it directly in the Basic MSI project ... 😞 😞 😞
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 17, 2007
07:27 AM
Hi pkass02,
I know you had your trouble some months ago, but I found your post today and I like to share this with anyone interested in this forum. It might save time and nervs.
I had a similar problem with permissions until I found out that the main "error" was that the "Domain" entry in the LockPermissions Table should not be used when granting rights to user groups. It worked only for single users as expected. So leave it empty.
It was helpful for me to use and analyse the little merge module posted on installsite:
http://www.installsite.org/files/iswi/SIDLookup.zip
The paragraph is named :
"Using the LockPermissions Table on Localized Windows Versions"
and located at :
http://www.installsite.org/pages/en/msi/tips.htm
Hope it helps.:)
I know you had your trouble some months ago, but I found your post today and I like to share this with anyone interested in this forum. It might save time and nervs.
I had a similar problem with permissions until I found out that the main "error" was that the "Domain" entry in the LockPermissions Table should not be used when granting rights to user groups. It worked only for single users as expected. So leave it empty.
It was helpful for me to use and analyse the little merge module posted on installsite:
http://www.installsite.org/files/iswi/SIDLookup.zip
The paragraph is named :
"Using the LockPermissions Table on Localized Windows Versions"
and located at :
http://www.installsite.org/pages/en/msi/tips.htm
Hope it helps.:)
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)