Re: [WiX-users] How to use CustomAction with a VBScript

2007-04-24 Thread Simon Dahlbacka
yes, throw that away, and start again from scratch.. It seems what you're trying to do is to create a bootsrapper inside a msi. Use a real bootstrapper instead to take care of installing multiple msi:s On 4/25/07, Nathan Lane <[EMAIL PROTECTED]> wrote: So here's what I have, and my installer

Re: [WiX-users] WIX: include "DialogLayout.wxi" file from "DialogLayout_JA.wxi" file?

2007-04-24 Thread Bob Arnson
Jon Choe wrote: What I would like to do is to include the "DialogLayout.wxi" file "DialogLayout_ja.wxi" file? Is this possible? Do you get an error? -- sig://boB http://bobs.org - This SF.net email is sponsored

Re: [WiX-users] Dialog to let user select "Program Menu" folder

2007-04-24 Thread Bob Arnson
Maslov, Igor wrote: I'd appreciate if you could point to such WiX dialog. There is none, but you don't need C++ for this -- just another dialog like InstallDirDlg that spawns BrowseDlg. -- sig://boB http://bobs.org -

Re: [WiX-users] WIX 3.0 hates my mergefiles

2007-04-24 Thread Bob Arnson
Thomas B wrote: > Error34ICE27: Action: 'DuplicateFiles' in > InstallExecuteSequence table must come after the 'InstallFiles' > action.light.exe01Lingstaller > Error75ICE32: Possible Mis-Aligned Foreign Keys > installer.msi01installer > Error76

Re: [WiX-users] Anybody knows why PrimaryVolumeSpaceRequired is always 0?

2007-04-24 Thread Bob Arnson
Maslov, Igor wrote: By some reason _PrimaryVolumeSpaceRequired_ property is always 0. According to the doc, the Primary* properties are set only if there's a PRIMARYFOLDER directory entry. See "PRIMARYFOLDER Property" in the MSI SDK doc for details. -- sig://boB http://bobs.org --

Re: [WiX-users] Dialog to let user select "Program Menu" folder

2007-04-24 Thread Bob Arnson
Maslov, Igor wrote: Is it possible to retrieve required free disk space without displaying "Feature Selection" dialog? When using "Feature Selection" dialog I can subscribe to SelectionSize property to display required disk space. There's no other control that publishes a feature size ev

Re: [WiX-users] UAC Prompt Required

2007-04-24 Thread Bob Arnson
Gareth at Serif wrote: > So, how can I insist that the install gets elevated and give the UAC prompt > in order to work in all methods of repairing the install? > Make sure the InstallPrivileges attribute isn't set to 'limited' (i.e., make sure it's 'elevated'). Remember that the UI is never e

Re: [WiX-users] Shortcut + hyperlink 2

2007-04-24 Thread Bob Arnson
Scott Sam wrote: > This is what I do. Basically make a shortcut to internet explorer and > pass the web address as the argument. If a user chose another browser as default -- and some 10 percent have, according to some reports -- an installer should respect that. To do otherwise probably bor

Re: [WiX-users] Cancel during Uninstall

2007-04-24 Thread Bob Arnson
Anton Tkachev wrote: > But please give me an url or a description how I can do it using > native MSI custom actions (uninstallation rollback). Actually I do not > know C++ well, but this is very important task for me and I do my best > to finish it, even if I need to eat my hat :-) http://msdn2

Re: [WiX-users] Remove a section using XmlFile

2007-04-24 Thread Bob Arnson
[EMAIL PROTECTED] wrote: > If the VerifyPath is relative to the ElementPath and the action is "delete" > wouldn't VerifyPath always be blank? Yet the documentation indicates that it > is required. > Yes, it's not relative. It identifies a node that must exist for the deletion to occur. Usual

Re: [WiX-users] How to get 8.3 path for INSTALLDIR

2007-04-24 Thread Bob Arnson
[EMAIL PROTECTED] wrote: > As far as I understand, I cannot install a component after > InstallFinalize, and I had to run my CA after InstallFinalize so that > the directory has been created. You don't have to run a CA after InstallFinalize -- in fact, you shouldn't, because it can't be rolled

Re: [WiX-users] Beginner's Tutorial, Books, Versions...

2007-04-24 Thread Rennie Petersen
Julie, Thanks for the Wiki. To all interested: I've published the first two pages (out of five) of my "beginners tutorial". http://www.merlinia.com/mdt/WiXTutorial.msl It's a lot more work than I expected. :-( Corrections, suggestions, criticism, etc. very welcome. Probably not of much int

Re: [WiX-users] Using .NET 2.0 Managed Custom Actions

2007-04-24 Thread Wilson, Phil
InstallShield setups use it to call Installer classes, and I think Advanced Installer does too because they support dialog boxes with the same set of parameters as Visual Studio. Whether these uses are actually blessed in some way by Microsoft I don't know. Documentation? You mean the error mes

[WiX-users] WIX: include "DialogLayout.wxi" file from "DialogLayout_JA.wxi" file?

2007-04-24 Thread Jon Choe
I have DialogLayout_.wxi files for each language that contain culture specific dialog settings. I also have DialogLayout.wxi file that contains common dialog settings. What I would like to do is to include the "DialogLayout.wxi" file "DialogLayout_ja.wxi" file? Is this possible? Thanks, Jon

Re: [WiX-users] How to use CustomAction with a VBScript

2007-04-24 Thread Nathan Lane
So here's what I have, and my installer errors out when I try to run it, saying that something was wrong with the script. WXS File:

Re: [WiX-users] Custom Action works under WinXP-SP2, fails under Win2K?

2007-04-24 Thread Mike Dimmick
I suspect that the reason that the directory is not yet created is that Windows Installer hasn't actually started executing the script yet. When executing the InstallExecuteSequence, for standard actions and deferred custom actions sequenced after InstallInitialize, Windows Installer doesn't actua

[WiX-users] Anybody knows why PrimaryVolumeSpaceRequired is always 0?

2007-04-24 Thread Maslov, Igor
I need to display required disk space in my custom dialog, By some reason PrimaryVolumeSpaceRequired property is always 0. Looks like the only way to display required space is to use standard installer controls, Or subscribe to the feature selection control SizeChanged event. Is there any othe

Re: [WiX-users] Custom Action works under WinXP-SP2, fails under Win2K?

2007-04-24 Thread John Vottero
You do not use privMsiGetPropertyStr to initialize cchIniName. You initialize cchIniName like this: char *cchIniName = new char[szBuf]; which just allocates a buffer. The contents of that buffer are undefined. > -Original Message- > From: [EMAIL PROTECTED] [mailto:wix-users- >

[WiX-users] Heat Question

2007-04-24 Thread jrcolons
Just two brief questions: Does Heat have the capability of excluding archives with certain extensions? if yes, How do I do that? Thanks in advance Jose -- View this message in context: http://www.nabble.com/Heat-Question-tf3641295.html#a10169576 Sent from the wix-users mailing list arc

Re: [WiX-users] Custom installation

2007-04-24 Thread Tal Shrestha
Thanks a bunch! :-) On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: VBScript? Absolutely not! Why do I say that? Because among other reasons you then place an additional dependency on the installation (the scripting runtime). True, VBScript custom actions are supported, but I think

Re: [WiX-users] How to use CustomAction with a VBScript

2007-04-24 Thread Nathan Lane
Thank you Robert for the help, I am now to the point where I wonder how the InstallExecuteSequence element affects the Feature element. Is InstallExecuteSequence what takes precedence in the script? Nathan On 4/24/07, Robert Randall <[EMAIL PROTECTED]> wrote: Nathan, here are a couple of sn

Re: [WiX-users] How to use CustomAction with a VBScript

2007-04-24 Thread Robert Randall
Nathan, here are a couple of snippets that might help. You need to use the Binary to get the script into the MSI database and then you reference it in a custom action. The custom action calls a specific funtion in the script source. Then you need to reference the custom action your Instal

Re: [WiX-users] Merge Modules evaluating earlier then Components?

2007-04-24 Thread Alex Steen
Ok, I changed all the INSTALLDIR references to be TARGETDIR and I'm still getting the same behavior. TARGETDIR is "C:\Program Files\Test" initially and then I change it to "C:\Test" in the SelectFolderDialog. All my components get installed to C:\Test, my merge module gets installed to c:\Program

Re: [WiX-users] Custom Action works under WinXP-SP2, fails under Win2K?

2007-04-24 Thread Julie Campbell
No, cchIniName is initialized, I was just saving everyone an extra chunk of code that is working. Here is the function that initializes cchIniName and the other WiX property strings before the call to fopen_s: // NOTE: Caller responsible for freeing TCHAR * buffer if non-null return code TCHAR *

[WiX-users] How to retrieve Required Disk Space value?

2007-04-24 Thread Maslov, Igor
Hello, Is it possible to retrieve required free disk space without displaying "Feature Selection" dialog? When using "Feature Selection" dialog I can subscribe to SelectionSize property to display required disk space. But, what if I have only one feature, not selections, but I need to display

Re: [WiX-users] How to get 8.3 path for INSTALLDIR

2007-04-24 Thread Chris.Rowland
I'm back on task trying to resolve this 8.3 INSTALLDIR path issue, and I can get the path in question using the method Phil suggested, but I'm not certain how to use that to set the environment variable. As far as I understand, I cannot install a component after InstallFinalize, and I had to run m

Re: [WiX-users] Custom Action works under WinXP-SP2, fails under Win2K?

2007-04-24 Thread Mike Dimmick
Your call to fopen_s uses the uninitialised cchIniName buffer as the path name to open for writing. (BTW, misuse of Hungarian notation because this is _not_ a Count of Characters - use sz or psz for string-terminated-with-zero. If that's what you intended, of course.) You can also edit INI files

Re: [WiX-users] Merge Modules evaluating earlier then Components?

2007-04-24 Thread Mike Dimmick
The contents of a merge module are merged directly into your MSI file - at that point, the merge module's identity is lost. The only indication that an entry in a table came from a merge module is that it typically has a GUID at the end of the textual component/file/registry ID, which is appended w

Re: [WiX-users] Custom Action works under WinXP-SP2, fails under Win2K?

2007-04-24 Thread Julie Campbell
fprintf writes to the file pointed to by cchIniName. Julie Campbell [EMAIL PROTECTED] -Original Message- From: Mike Dimmick [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 4:05 PM To: 'Julie Campbell'; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Custom Action works

Re: [WiX-users] Custom Action works under WinXP-SP2, fails under Win2K?

2007-04-24 Thread Mike Dimmick
Did you miss a line out? You don't appear to have written to the buffer pointed to by cchIniName so it will be filled with garbage. The success or failure may depend on whether the junk in the buffer parses as a valid file name or not. I would strongly recommend using Unicode file name buffers and

Re: [WiX-users] Merge Modules in Wix

2007-04-24 Thread Mike Dimmick
It may be possible to change the name/location of the folder it installs to using module ConfigurationData. You would need to check the documentation for the module to find out if this is possible. If there is no documentation, look in the ModuleConfiguration table in the merge module using Orca (

[WiX-users] Custom Action works under WinXP-SP2, fails under Win2K?

2007-04-24 Thread Julie Campbell
My installer needs to work under WinXP and Win2K for this round. I wrote a custom action and it works great under WinXP but fails under Win2K and I cannot figure out why. I am using WiX v3.0.2420, both machines have Windows R Installer. V 3.01.4000.1823 installed. The custom action is in a C++ D

Re: [WiX-users] Dialog to let user select "Program Menu" folder

2007-04-24 Thread Maslov, Igor
Hello, Is it possible to retrieve required free disk space without displaying "Feature Selection" dialog? When using "Feature Selection" dialog I can subscribe to SelectionSize property to display required disk space. But, what if I have only one feature, not selections, but I need to display

[WiX-users] Merge Modules evaluating earlier then Components?

2007-04-24 Thread JCWrs
Here is what I've got: I have looked in Orca and edited the directory structure so that my merge module installs to the INSTALLDIR directory as all of my other components do. However, when I run my install the Merge Module installs to the default value of INSTALLDIR while the components install

[WiX-users] Dialog to let user select "Program Menu" folder

2007-04-24 Thread Maslov, Igor
Hello, I'm using WiX 3. My installation creates shortcuts in the "Program Menu" folder. Now I need to add a dialog that will let user to change default location of the shortcuts in the "Program Menu" folder. It seems there is no WiX dialog to do this. I'd appreciate if you could point to such

[WiX-users] How to use CustomAction with a VBScript

2007-04-24 Thread Nathan Lane
Hello all, I am in need of using some VBScripts in my installation and have learned that one can use a CustomAction to reference and eventually execute the VBScript. But I'm not understanding how that actually works. Looking at the Manual > Schema reference, I am very confused about what attrib

Re: [WiX-users] Custom installation

2007-04-24 Thread Richard.Foster
VBScript? Absolutely not! Why do I say that? Because among other reasons you then place an additional dependency on the installation (the scripting runtime). True, VBScript custom actions are supported, but I think you'll find comments from people who should know (E.g. Rob Mensching - see his B

[WiX-users] Copy entire directory tree?

2007-04-24 Thread Matthew Janulewicz
I think I know the answer to this ("heck no, you idiot"), but I thought I'd ask. We have a need to duplicate an entire directory tree, in essence to install it to two different locations at the same time (if you're curious, we have an 'internal' and 'external' website that have identical conten

Re: [WiX-users] WiX 2.0 (stable) and Vista?

2007-04-24 Thread Mark Rendle
No, I was testing on my dev box, which has had goodness knows what run on it. I'll try it on a QA virtual tomorrow and see what happens. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Krueger [MVP] Sent: 24 April 2007 17:38 To: wix-users@list

Re: [WiX-users] Shortcut + hyperlink 2

2007-04-24 Thread Scott Sam
This is what I do. Basically make a shortcut to internet explorer and pass the web address as the argument. I do it this way so that it always opens another instance of ie when you use the shortcut instead of opening it the current window. This was a big problem with ie6.

Re: [WiX-users] Handing a change in IUSR account

2007-04-24 Thread Don Tasanasanta
Are most people simply assuming IUSR_ and calling it good? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Don Tasanasanta Sent: Friday, April 20, 2007 4:45 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Handing a change in IUSR acc

Re: [WiX-users] Custom installation

2007-04-24 Thread Tal Shrestha
Thanks for your help. Do you think a safer approach would be VBScript or other easier file-manipulating language should be used instead? On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: So, what we're talking about is something like the way VB6 used to handle add-in tools… only less s

Re: [WiX-users] Beginner's Tutorial, Books, Versions...

2007-04-24 Thread jrcolons
As a newbie in Wix matters, I'm suffering the lack of a centralized knowledge source for wix v3. I know I can't cooperate much in wix technical matters, but I can translate material to spanish in order to more people get aquainted to wix as I am and I'm sure you are. Count on me and thanks for al

Re: [WiX-users] WiX 2.0 (stable) and Vista?

2007-04-24 Thread Stefan Krueger [MVP]
Are you testing this on a clean machine? Did you check the Windows Event Log? Maybe it's triggering auto-repair of some other package, maybe a test package you had installed previously? -- Stefan Krueger Microsoft Windows Installer MVP Please post your questions in the newsgroup or vist one of

Re: [WiX-users] One-or-More Installation Design?

2007-04-24 Thread Scott Parker
Don: I had considered that, but since these were the exact same files, virtual directories, etc. each time, having components for each wasn't exactly the most elegant solution in my mind. It's a fine line to be sure, but after reading through the other options (see my other email on this topic) a

Re: [WiX-users] timestamp difference between source files and installedfiles

2007-04-24 Thread Wilson, Phil
Windows Installer changes timestamps when it installs files. It makes create and modify dates identical because this forms the basis of the update rules for data files. If the create and modify dates are different then the user has altered the file and it won't be updated. Phil Wilson _

Re: [WiX-users] One-or-More Installation Design

2007-04-24 Thread Scott Parker
It always seems to be a case of finding the right word to search on; in this case, a search of the wix-users archive for "multiple" turned up the info I needed. Sorry for what was essentially a re-post. In case anyone is curious, my solution is going to be two-fold: 1. Using Torch and the techni

Re: [WiX-users] One-or-More Installation Design?

2007-04-24 Thread Don Tasanasanta
Couldn't you set up several features with the components you need and turn them on and off depending on the decisions the user makes through the UI. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Parker Sent: Tuesday, April 24, 2007 8:25

Re: [WiX-users] Custom installation

2007-04-24 Thread Richard.Foster
So, what we're talking about is something like the way VB6 used to handle add-in tools... only less structured. You have my sympathy. :-) If the file you are appending to really is unstructured text (as opposed to something with an ini file structure, but with a txt extension), I think you

Re: [WiX-users] Custom installation

2007-04-24 Thread Tal Shrestha
Yes, these are configuration files of another existing application (not mine). I must append my text to the text file in order to add this specific feature (yes, the user can choose to add it or not) On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Ah! So we're talking about user spec

[WiX-users] One-or-More Installation Design?

2007-04-24 Thread Scott Parker
I've used WiX to create a few rather simple "Do X then Y then possibly Z" sorts of installations before, but now I'm working on one of much greater scope that I'm having trouble clearly seeing how to tackle. The problem is thus: I need to allow the user to create 1 OR MORE virtual directories (an

Re: [WiX-users] Custom installation

2007-04-24 Thread Richard.Foster
Ah! So we're talking about user specific data huh. Generally speaking, users take a very dim view of an installation modifying anything they have modified, so I think that supporting rollback is probably not appropriate in this instance. My next question would be this. Why is your installat

Re: [WiX-users] Merge Modules in Wix

2007-04-24 Thread Alex Steen
The contents are fine. However, it is installing the files, just in a completely different place. I'm installing to c:\Test and the files in the module are going to C:\Program Files\Solarc\ServerRAIV\Module Retargetable Folder\. Is there some way to change where they are being installed to? ---

Re: [WiX-users] Custom installation

2007-04-24 Thread Tal Shrestha
It's simpler than that. I have a few text lines I need to append into an existing text file. This target text file will be used only by *one* component, in my own single installation. However, once the installation is complete, the user might add (on his own, manually) more text lines - after th

Re: [WiX-users] Custom installation

2007-04-24 Thread Richard.Foster
Arguably, yes... if you append text to a file on installation, that text should be removed when you uninstall. If you have several installations that perform similar operations on the same file things will get really messy! Again, it may help if we know the problem you are trying to solve.

Re: [WiX-users] Custom installation

2007-04-24 Thread Tal Shrestha
Actually, rethinking this, this are simple text files I need to *append* text to them. (not XML or INI, just plain text files). Roll back (uninstallation) would mean the text that was appended should be stripped down, baring in mind other text might have added later on. What do you think? On 4/2

Re: [WiX-users] Custom installation

2007-04-24 Thread Richard.Foster
It depends what type of text file. If the files are XML, the wixca.wixlib includes a custom action which may accomplish what you need. If the file is an older style .ini file, then there may be support for what you need built into Microsoft Installer (see the IniFile element in the WiX help

[WiX-users] Custom installation

2007-04-24 Thread barbq
Hi, My installer is supposed to perform a custom installation procedure, such as parsing existing text files and inserting it's own text elements in these files, and also appending text to existing text files. Is there a mechasim for such actions? If not what should I use - an external DLL seems

Re: [WiX-users] [WiX-User] Overwriting existing files

2007-04-24 Thread Matt Anderson
John S yahoo.com> writes: > > > Thank you for your reply. Can you please give me an example of how i write this in my .wxs file and how to check if its install or repair.   The scenario is that a user has installed the product and lets say he has changed the content one of the installed fi

[WiX-users] File sharing Vista limitations

2007-04-24 Thread HvPutten
Can someone tell met the wix (v2) limitations with de file sharing on Vista. My install is privileged but FileSharing seldom works and shares wont get removed. Is Wix V3 better in this aspect ? Under what circumstances should it work ? Should i post a bugreport ? regards, Hugo van Putten -- View

Re: [WiX-users] Merge Modules

2007-04-24 Thread Richard.Foster
Carl, I did a quick check in our code... (WiX V2 BTW) We appear to be using a element in the , and a element in the . I don't know if both are actually necessary, but I would imagine there must be at least one element, otherwise you will never actually be including the merge module -

[WiX-users] Beginner's Tutorial, Books, Versions...

2007-04-24 Thread DE�K JAHN, G�bor
On Mon, 23 Apr 2007 13:52:25 -0400, Julie Campbell wrote: Julie, you can count me in with any version that this idea develops into, right down to a book (I also have written similar material before, plus I have the desktop publishing background both in tools and knowledge to make it look like a

Re: [WiX-users] Automating MSI merge into bootstrapper?

2007-04-24 Thread John Vottero
You can use IExpress.exe to do that. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas B Sent: Tuesday, April 24, 2007 5:14 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Automating MSI merge into bootstrapper? Hi What would be a nice way to have the MSI me

[WiX-users] UAC Prompt Required

2007-04-24 Thread Gareth at Serif
Hi guys, I have an issue with a package I've built which has a number of merge modules, including that for MDAC2.8. This has some properties set on the client side of the installation that need to be passed to the server side in order for it to install when needed. It is not needed on Vista, of c

[WiX-users] Automating MSI merge into bootstrapper?

2007-04-24 Thread Thomas B
Hi What would be a nice way to have the MSI merged into the bootstrapper unifying it into just one setup.exe file and nothing more? Can this be done with a buildproject just like creating the bootstrapper? - Thomas - This

[WiX-users] WIX 3.0 hates my mergefiles

2007-04-24 Thread Thomas B
Hey I have the following Merge entries inside the root tag these are all added to a feature via the tag. On Wix2.0 this builds just fine, on WIX 3.0/Votive 3.0 i get the following errors: Error34ICE27: Action: 'DuplicateFiles' in InstallExecuteSequence tab

[WiX-users] WiX 2.0 (stable) and Vista?

2007-04-24 Thread Mark Rendle
I've built an MSI package using the stable 2.0 release of WiX, and it works fine on Windows 2000 and XP, but when I run it on Vista, it shows "file12" in the title of the dialogs, and gives an error message saying "A network error occurred while attempting to read from the file C:\WiX\Product.msi".

[WiX-users] Cancel during Uninstall

2007-04-24 Thread Anton Tkachev
Many thanks for your answer. But please give me an url or a description how I can do it using native MSI custom actions (uninstallation rollback). Actually I do not know C++ well, but this is very important task for me and I do my best to finish it, even if I need to eat my hat :-) Thank yo