Showing posts with label WIX. Show all posts
Showing posts with label WIX. Show all posts

Friday, June 11, 2010

WIX directory access rights ,Permissions

I'm building a wix setup that will install a web site
one requirement is "Netork Service" user read/write access to Images folder
(to upload Images and read uploaded images)

This can be accomplished with Permission element...

Steps
1-create a component inside the directory that permission attributes will be given
2-Inside component create permission node
(properities and details for Permission element see http://wix.sourceforge.net/manual-wix2/wix_xsd_permission.htm)
3-put apporiate componentref element to Featres node

code snippet below

directory id="Images" name="Images" guid="84A264EF-2BC5-41e3-8124-2CA10C2805DB"
createfolder directory="Images"
permission user="NETWORK SERVICE" genericall="yes"
/createfolder

...
feature id="ImagesFolderComponent" level="1"
............

Monday, February 15, 2010

versioning your setups

while deploying your programs to clients
you should use versioning futures....
here is a automated solution for WIX setups

change yor wix project folder like this
link

and you may use an auto versionner for yor exe
her a link for autobuilder open source project ...

Traoubleshooting a setup

I devoloped a setup for my exe and put it test server..The setup just says it was aborted..no entry data in eventviewer e.g....
So how to troublshoot the problem...
for that we should use msiexec command with logging parameters..
like this one
msiexec /i product.msi MYPARAM=cool /l*v "c:\log.txt"


fro details
-look

Friday, February 12, 2010

Debugging wix custom actions

I'm generating setups for my solutions nowadays...
I choosed the wix technolgy in this task.
One of the needs of setup projects is degugging custom eactions..
I googled and found out some methods here is the link
I chooesed the message box method
(addimg messagebox.shor in custom action code)
and in runtime of setup attaching the process to run32.dll....