开发者

MyDocuments from current User, buildin variable in Wix?

i need to install some file to C:\Documents and Settings\currentUser\SomeFolder. I can't find 开发者_C百科some buildin function/variable for it.

Can someone help/tell me the <DirectoryRef Id="TARGETDIR"> structure or the solution for my problem?

Thanks.


First, are you sure that you want to do this? You will get a behavior where each user who logs in and starts up your program will attempt to do a repair and ask for the original install if not found. Also when you uninstall you won't be able to clean up all the users profiles.

Many people prefer the "first run" pattern where you have the installer install to C:\Documents and Settings\All Users\ and when you run your program it copies the files to the current user profile if needed ( usually only if you are overriding something that is set for all users ).

Otherwise, here is a list of available directories in Windows Installer / WiX

System Folder Properties: http://msdn.microsoft.com/en-us/library/aa370905(v=VS.85).aspx#system_folder_properties

You'll want to choose from AppDataFolder, LocalAppDataFolder and CommonAppDataFolder.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜