/build/static/layout/Breadcrumb_cap_w.png

MSI is copying file to C:\Windows\All Users\Documents

I've repackaged an application (WPS) which should install files in C:\Documents and Settings\All Users\Documents
But it copies the files in C:\Windows\All Users\Documents.
First I thought it had something to do with ALLUESER=1 so I changed it to ALLUSERS=2
But still the files are copied to the wrong location.

(In WPS the location is shown as C:\windows\Profiles\All Users\Documents)

I'm sure the solution is very simple, but I can't find it....yet.

Any help would appreciated!

0 Comments   [ + ] Show comments

Answers (10)

Posted by: anonymous_9363 14 years ago
Red Belt
0
This is a well-known issue with WPS, wherein it fails to resolve the profile folders properly.

Grab an InstallShield-authored MSI and pinch the profile property-setting CAs (SetUserProfileNT, SetAllUsersProfileNT and SetAllUsersProfile2K) from it and paste them into your 'Windows Application' template. Make sure you have them set to execute at least once.
Posted by: Yaduveer 14 years ago
Orange Senior Belt
0
Hi VBScab, after I saw this post, I am also trieng to achive the same functionality.
After setting these properties, do we need to write a customaction, or we can achive the same through msi tables?
Posted by: anonymous_9363 14 years ago
Red Belt
0
The idea is to set the properties using the Custom Actions. Grabbing them from an InstallShield-authored MSI is the shortest route. If one wanted to roll one's own, there's no problem with that.

I'm confused by your last question. Adding CAs and setting properties ultimately involve changes to the relevant tables...
Posted by: Yaduveer 14 years ago
Orange Senior Belt
0
Yes, you are right. I missed that point totally :)
Posted by: subsense 14 years ago
Purple Belt
0
Ok. I've added de Custom Actions from a Vendor MSI. I used the extracted AcroRead.MSI (v. 9.2)
I injected thes CA's as following: (Copied using Orca)

In WPS: Custom Actions --> Set property

Set Property ALLUSERSPROFILE to [%ALLUSERSPROFILE] (SetAllUsersProfiles2K)
Set Property ALLUSERSPROFILE to [%SystemRoot\Profiles\All Users (setallusersProfileNT)
Set Property USERPROFILE to [%USERPROFILE] (setUserProfileNT)

ps, Note the missing "]" at line 2

All Type 51

Location TAB:
No Sequence

Properties TAB:
In-Script Options: (Immediate Execution) --> greyed out
Processing: (Synchronous) --> greyed out
Scheduling Options: Always Execute

Description TAB:
Empty

Still the MSI copies the files to C:\Windows\All Users\.....

What am I overlooking here?
Posted by: Rheuvel 14 years ago
Brown Belt
0
Is AcroRead.MSI the one you're trying to edit or the MSI you got the Custom Actions from?

Because, if Acrobat Reader is the package you're trying to capture, I'd really suggest to stop using Wise and just use the Adobe Customization Wizard. If that's just the one you took the CA's from, I've said nothing.... (Still not sure any Adobe MSI is a good example though)
Posted by: anonymous_9363 14 years ago
Red Belt
0
ps, Note the missing "]" at line 2It's required. Add it back.

Did you remember to set the CA to 'Always execute', so that it gets runs if the install is run with no UI?
Posted by: reds4eva 14 years ago
Second Degree Blue Belt
0
This is a tidier way to have it.

If VersionNT Then
Set Property USERPROFILE to [%USERPROFILE]
End
If VersionNT = 400 Then
Set Property ALLUSERSPROFILE to [%SystemRoot]\Profiles\All Users
End
If VersionNT >=500 Then
Set Property ALLUSERSPROFILE to [%ALLUSERSPROFILE]
End
Posted by: subsense 14 years ago
Purple Belt
0
@Rheuvel, I've just used this MSI for the CA's, very trange though there's a real bug in it.
The missing (]).

@Red4eve, Thanks, I will note this down for future issues.

But, because of some time pressure I've solved it the dirty way.

I created 2 CA's
The first VBS will make the folder C:\Documents and Settings\All Users\Documents and sets the security (with setacl)
The second wil copy the files to this location.

Not the nicest wat, but it works!

Thanks all, for your help
Posted by: jinxngoblins 14 years ago
Senior Yellow Belt
0
You can club the scripts to one. that is one script which will create the folders and copy the files.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ