Advertisement

02.07.2008 at 11:55PM PST, ID: 23147130
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Deleting LockPermissions problem, need help (Network lockpermission problem)

Zones: InstallShield, MSI
Tags: installshield
I am having a problem with deleting rows from the LockPermissions table.

We are setting fullrights to EveryOne on one of our folders.
The user can select where the folder shoudl be.
If the user selects a network path then there is an error message.

I have tried to implement the following workaround:
Delete all rows from LockPermissions

<--- Code start --->
function DeleteRightsIfOnNetwork(hMSI)
NUMBER result;
HWND hDB, hViewlist, hResult,hRec;
begin
try
result=PathIsNetworkPath(TARGETDIR);
catch
endcatch;

if result!=0 then

// Is network drive
hDB = MsiGetActiveDatabase(hMSI);
//hResult=MsiDatabaseOpenView(hDB,"SELECT * FROM `LockPermissions` WHERE `User`='EveryOne'",hViewlist);
hResult=MsiDatabaseOpenView(hDB,"SELECT * FROM `LockPermissions`",hViewlist);
if hResult==ERROR_SUCCESS then
hResult=MsiViewExecute(hViewlist, NULL);
if hResult!=ERROR_SUCCESS then
MessageBox ("Error executing!!", INFORMATION);
endif;

while (MsiViewFetch(hViewlist, hRec) == ERROR_SUCCESS)
hResult = MsiViewModify(hViewlist, MSIMODIFY_VALIDATE_DELETE, hRec);
if (hResult!=ERROR_SUCCESS) then
MessageBox ("Error verifying!!", INFORMATION);
endif;


hResult = MsiViewModify(hViewlist, MSIMODIFY_DELETE, hRec);
if (hResult!=ERROR_SUCCESS) then
MessageBox ("Error deleting!!", INFORMATION);
endif;
endwhile;

else
if hResult==ERROR_BAD_QUERY_SYNTAX then
MessageBox ( "Bad Syntax!!", INFORMATION);
endif;
//
endif;
//MsiDatabaseOpenView(
endif;
end;
<--- Code end--->

And there are no errors when executing this.

The error is now replaced with a new error message:

"An error occurred while applying security settings.
Windows\ is not a valid user or group. This could be a problem with the package,
or a proble connecting to a domain controller on the network."

I feel like I am close to a solution, does anyone have any input to offer?
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: Llandr
Solution Provided By: vadimrapp1
Participating Experts: 1
Solution Grade: B
Views: 4
Translate:
Loading Advertisement...
02.08.2008 at 05:32AM PST, ID: 20849869

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.08.2008 at 06:52AM PST, ID: 20850645

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.09.2008 at 09:52PM PST, ID: 20860237

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.10.2008 at 09:05AM PST, ID: 20861660

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.10.2008 at 09:38AM PST, ID: 20861751

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.21.2008 at 01:18AM PST, ID: 20946164

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628