Re: [WiX-users] How to pass parameters from Custom Action written in VBScript?

2009-07-18 Thread Konstantin Vlasenko
Maybe I didn't get your question right.
In the custom action you can do like this:
Session.Property(NewProperty) = NewValue

2009/7/18 Jirong Hu jirong...@gov.ab.ca

 Thanks a lot, Konstantin.

 How can I pass information from the CustomAction (VBScript) code back to
 Wix?

 Jirong

 -Original Message-
 From: Konstantin Vlasenko [mailto:konstantin.vlase...@gmail.com]
 Sent: Thursday, July 16, 2009 11:01 PM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] How to pass parameters from Custom Action written
 in VBScript?

 Deferred custom action. Please read carefully this artical
 http://msdn.microsoft.com/en-us/library/aa370543(VS.85).aspx
 And see my example.
 CustomAction Id=ShowInstallDir.SetProperty
   Property=ShowInstallDir Value=[INSTALLDIR] /
  CustomAction Id=ShowInstallDir
   Script=vbscript Execute=deferred
   ![CDATA[
   Dim property
   property = Session.Property(CustomActionData)
   MsgBox property
   ]]
  /CustomAction
  InstallExecuteSequence
   Custom Action=ShowInstallDir.SetProperty
Before=InstallInitializeNOT REMOVE=ALL/Custom
   Custom Action=ShowInstallDir
Before=InstallFinalizeNOT REMOVE=ALL/Custom
  /InstallExecuteSequence


 2009/7/17 Jirong Hu jirong...@gov.ab.ca

  Hi
 
  This is my first Custom Action, and I copied the code from here:
 
 
 http://n2.nabble.com/Re:-Creating-a-virtual-directory-under-a-web-site-(other-than-the-default)-(by-Mark-Jones)-td692909.html
 
  When I try to run this GetSites.vbs from Windows command line, I got an
  error say Object required on Session.Property(WebSitesList) = strRslt.
 If
  run the msi file SFS.msi, I got an error like this in the log:
 
  Action 16:06:26: caGetWebSites.
  Error 1720. There is a problem with this Windows Installer package. A
  script required for this install to complete could not be run. Contact
 your
  support personnel or package vendor. Custom action caGetWebSites script
  error -2147467259, Msi API Error: Property,Name Line 13, Column 2,
  MSI (s) (1C:4C) [16:06:32:531]: Product: SFS -- Error 1720. There is a
  problem with this Windows Installer package. A script required for this
  install to complete could not be run. Contact your support personnel or
  package vendor. Custom action caGetWebSites script error -2147467259, Msi
  API Error: Property,Name Line 13, Column 2,
 
  All my scripts are attached. Can someone also point me to some links tell
  how to write Custom Action in VBScript? I try to get a list of existing
 IIS
  web sites and display them in a Combo box in a dialog for the installer
 to
  choose from. How can I pass the result of GetSites() into the dialog?
 
  --- GetSites.vbs -
  Function GetSites()
 Dim strRslt: strRslt = 
 Dim locatorObj: Set locatorObj =
  CreateObject(WbemScripting.SWbemLocator)
 Dim objProvider: Set objProvider =
  locatorObj.ConnectServer(localhost, root/MicrosoftIISv2)
 Dim objServersCollection: Set objServersCollection =
  objProvider.ExecQuery(SELECT Name, ServerComment FROM
 IIsWebServerSetting,
  WQL,H30)
 Dim oServer
 For Each oServer In objServersCollection
 'strRslt = strRslt   oServer.Name 
 Chr(9)
   oServer.ServerComment  vbCrLf
 strRslt = strRslt  oServer.ServerComment
 
  vbCrLf
 Next
 Session.Property(WebSitesList) = strRslt
 Set objServersCollection = Nothing
 Set objProvider = Nothing
 Set locatorObj = Nothing
 GetSites = 0
 Log (strRslt)
  End Function
  --- GetSites.vbs -
 
  ---install.wxs 
 CustomAction Id=caGetWebSites
   FileKey=GetSitesFile
   VBScriptCall=GetSites
   Execute=deferred
   Return=check
   HideTarget=no
   Impersonate=no /
 !--
 Binary Id=GetSitesBin
  SourceFile=GetSites.vbs /
 CustomAction Id=caGetWebSites
  BinaryKey=GetSitesBin VBScriptCall=GetSites Execute=firstSequence
  Return=check /
 --
 InstallExecuteSequence
 Custom
  Action=caGetWebSites Before=InstallFinalizeNot Installed/Custom
 /InstallExecuteSequence
 
  ---install.wxs 
 
 
  Thanks
  Jirong Hu
  Build Master
  780-644-5488
 
 
  This communication is intended for the use of the recipient to which it
 is
  addressed, and may contain confidential, personal, and or privileged
  information. Please contact us immediately if you are not the intended
  recipient of this communication, and do not copy, distribute, 

Re: [WiX-users] merge modules not working only vcredist.exe

2009-07-18 Thread warne warne

 

 

Hi Ari,

 

Thanks for tip re static link  explaining InstallExecuteSequence. Im not 
really concerned though about the custom action (launch app after installation 
checkbox). I only mentioned it to reference the error message 2896 in the log 
in case someone suggested it. The problem is, my installer works fine using 
VCRedist.exe (including the custom action) but not with merge modules - wont 
launch at all, custom action or no custom action. I thought merge modules  
vcredist are the exact same thing so concluded therefore Im not configuring the 
merge modules properly?

 

 

thanks,

 

-Original Message-


Where is your launchapplication custom action scheduled in the
InstallExecuteSequence?

I think that the VC redists won't actually get installed to the SxS folder
until after InstallFinalize, so if your action runs before then, the app
won't find the VC dlls and you'll get the error message you're seeing below.

I think that the answer is to launch your application after InstallFinalize.
You lose the ability to fail the install and rollback if your app fails to
launch, but maybe that's acceptable.  You could also statically link the app
with the CRT  MFC and then the dlls aren't necessary.

If your CA is already scheduled after InstallFinalize, then I wasn't much
help :)

-Ari


_
Windows Live Messenger: Happy 10-Year Anniversary—get free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] controlling install location based on the value of ALLUSERS

2009-07-18 Thread Bob Arnson
Eric Napier wrote:
 If ALLUSERS is 1, I want to install to ProgramFilesFolder. If ALLUSERS is
 blank, I want to install to LocalAppDataFolder.Any recommendations for how
 to accomplish this?
   

SetDirectory custom actions with conditions based on ALLUSERS.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WixVariables and GUIDs

2009-07-18 Thread Bob Arnson
rh_maill...@mac.com wrote:
 Thanks Brian, this does work (I thought I'd tried this and it didn't before!) 
  Odd that if I define the GUID as a pre-processor variable it doesn't require 
 {}'s and if you enter the GUID manually Wix says it doesn't need them.
   

http://www.joyofsetup.com/2008/07/17/beware-localization-variables/

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] I'd call this an error, not a warning

2009-07-18 Thread Bob Arnson
Mark Roden wrote:
 : warning MSB3155: Item 'Microsoft.Net.Framework.3.5.SP1' could not be
 located in 'C:\Program Files\Microsoft
 SDKs\Windows\v6.0A\Bootstrapper\'.


 I'd call that actually a pretty severe error, not a warning.
   

That's the .NET bootstrapper, not WiX.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to get the PrintEula.dll from Wix source?

2009-07-18 Thread Bob Arnson
Jiang, Chunyan (GE Healthcare) wrote:
 I saw some source code about PrintEula in wix
 sources\src\ext\UIExtension\ca folder. However, I don't know how to get
 PrintEula.dll. 

Just reference its Id; Light.exe will pull it from WixUtilExtension.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Need a Good Working Sample

2009-07-18 Thread Bob Arnson
Ravi Patt wrote:
 I took WiX3.msi and decompiled it using dark.exe. 

Don't decompile it; use the source code from src\setup\*.wxs.

 Where can I get the Custom Actions and their source?
   

src\ext\VSExtension\wixlib

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Updating web.config field value depending on if machine's 64bit or 32bit

2009-07-18 Thread Bob Arnson
Erica Chang (PROJECT) wrote:
 It appears that we are still using version 2 of wix, not 3...and so I do not 
 see WixUtilExtension.dll

 Is there a way to do this in version 2 of wix?
   

That's where you need to link with wica.wixlib.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] merge modules not working only vcredist.exe

2009-07-18 Thread Bob Arnson
warne warne wrote:
 Thanks for tip re static link  explaining InstallExecuteSequence. Im not 
 really concerned though about the custom action (launch app after 
 installation checkbox). I only mentioned it to reference the error message 
 2896 in the log in case someone suggested it. The problem is, my installer 
 works fine using VCRedist.exe (including the custom action) but not with 
 merge modules - wont launch at all, custom action or no custom action. I 
 thought merge modules  vcredist are the exact same thing so concluded 
 therefore Im not configuring the merge modules properly?
   

The content is identical but the process is different. You can't rely on 
the VC merge modules in a custom action that uses the VC DLLs. As long 
as you don't try to do that, they'll install correctly and you can rely 
on them, outside the installation transaction.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Specifying subfolder name at install time.

2009-07-18 Thread Bob Arnson
Greg Silin wrote:
 I know I can set a Directory via Property, but in that case I have to specify 
 the full path.  In this case, I only need to set that one folder name.
   

MSI doesn't support that, but you can always use SetDirectory to set the 
target name relative to a parent directory (i.e., [PARENTDIR]childDir).

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] merge modules not working only vcredist.exe

2009-07-18 Thread warne warne




 

 

 

So I remove the custom action to make sure the merge modules, as you say, 
install correctly. Same result...

App wont launch with merge modules (see 1st post for list of what I have). Only 
works if prior install vcredist.exe (2008).

 

Can I rephrase this question. Is there a link somewhere to find out what 
exactly is in vcredist.exe and what exactly it does to my system that merge 
modules (at least the way I have them currently configured) are not?

 

No more about custom actions please, and I dont want to bootstrap in 
vcredist.exe ;)

 

 

thanks all,



 
-Original Message-

The content is identical but the process is different. You can't rely on 
the VC merge modules in a custom action that uses the VC DLLs. As long 
as you don't try to do that, they'll install correctly and you can rely 
on them, outside the installation transaction.
 
-- 
sig://boB
http://joyofsetup.com/

_
With Windows Live, you can organise, edit, and share your photos.
http://clk.atdmt.com/UKM/go/134665338/direct/01/
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to handle installing a large number of files

2009-07-18 Thread akapoor

Thanks John.
I used Heat (Wix 3.0) to generate a file (help.wxs) - this basically contains 
lots of help files (html and also some images). 
How to do I used this file (help.wxs) inside another wix file (product.wxs) - 
this is main wix file.
Please let me know.
Thanks again,Anu

--- On Fri, 7/17/09, John Robbins (via Nabble) 
ml-user+58268-1057559...@n2..nabble.com wrote:

From: John Robbins (via Nabble) ml-user+58268-1057559...@n2.nabble.com
Subject: Re: [WiX-users] How to handle installing a large number of files
To: akapoor anupama_kap...@yahoo.com
Date: Friday, July 17, 2009, 2:00 AM



Heat with WiX 3.0 does a pretty good job of coordinating and building WiX 
fragments.


Long before the updated WiX 3.0 Heat, I wrote a tool for my use, Paraffin that 
takes care of generating WiX fragments. 
(http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/06/28/paraffin3-1-new-and-improved.aspx).


As with any tools that generate components, be extra careful and obey the 
component rules. :)



John

Wintellect

http://www.wintellect.com
877-968-5528


-Original Message-

From: akapoor [mailto:anupama_kap...@...]

Sent: Thursday, July 16, 2009 12:04 PM

To: wix-us...@...

Subject: Re: [WiX-users] How to handle installing a large number of

files





Can you please share your experience?



I also want to do exact same thing that you are talking about. I am not

sure, which way to go about.





Tom Crozier wrote:



 All - I need to know the best way to handle installing a large number

of

 files. As part of the project I have 2 different directories with

 approximately 24,000 files (including subfolders) in each. I could use

 heat to generate the initial list but then I am assuming I have to

 maintain the list from then on since I would not want the file id's

 changing from release to release. The other method would be to zip up

each

 directory and install the zip file. In this case I would need to write

a

 custom action to unzip the files (unless there is already something

 available). Ideas? Suggestions?



 Thanks - TopCat

 --



 ___

 WiX-users mailing list

 wix-us...@...

 https://lists.sourceforge.net/lists/listinfo/wix-users






--

View this message in context: http://n2.nabble.com/How-to-handle-
installing-a-large-number-of-files-tp3148741p3269023.html

Sent from the wix-users mailing list archive at Nabble.com.





--

Enter the BlackBerry Developer Challenge

This is your chance to win up to $100,000 in prizes! For a limited time,

vendors submitting new applications to BlackBerry App World(TM) will

have

the opportunity to enter the BlackBerry Developer Challenge. See full

prize

details at: http://p.sf.net/sfu/Challenge
___

WiX-users mailing list

wix-us...@...

https://lists.sourceforge.net/lists/listinfo/wix-users
--

Enter the BlackBerry Developer Challenge  

This is your chance to win up to $100,000 in prizes! For a limited time, 

vendors submitting new applications to BlackBerry App World(TM) will have

the opportunity to enter the BlackBerry Developer Challenge. See full prize  

details at: http://p.sf.net/sfu/Challenge
___

WiX-users mailing list

wix-us...@...

https://lists.sourceforge.net/lists/listinfo/wix-users






View message @ 
http://n2.nabble.com/How-to-handle-installing-a-large-number-of-files-tp3148741p3272801.html


To unsubscribe from Re: How to handle installing a large number of files, click 
here.







-- 
View this message in context: 
http://n2.nabble.com/How-to-handle-installing-a-large-number-of-files-tp3148741p3283167.html
Sent from the wix-users mailing list archive at Nabble.com.
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users