Yes,
What I want to do is my custom action depends on a file to be present in the 
directory which is created by installer and at the same time I have create 
database inside directory tag:
<directory ……….>
<Component Id="ConfigComponent"  Guid="080714c4-708f-41c8-b6aa-05d570516e71">
          <File Id="ConfigFile" Name="abc.exe.config"
            Source="abc.config " />
        </Component>
<Component Id='SqlComponent' Guid='ad0da39a-D8C7-4102-BA84-9702188FA316' 
KeyPath='yes'>
          <util:User Id='SQLUser' Name='[DBUSERNAME]' Password='[DBPASSWORD]' />
          <sql:SqlDatabase Id='SqlDatabase' Database='MyTestDatabase' 
User='SQLUser' Server="[DBSERVERNAME]"  ConfirmOverwrite="yes"
                           CreateOnInstall='yes' DropOnUninstall='no' 
ContinueOnError='no'>
          </sql:SqlDatabase>
        </Component>
</directory>


And a custom action that sets ="[DBSERVERNAME] which requires the config file.

Can you help me with this

From: Rob Mensching [mailto:r...@robmensching.com]
Sent: Tuesday, May 22, 2012 10:27 AM
To: Windows Installer XML toolset developer mailing list
Subject: Re: [WiX-devs] Wix Installation Custom Action to Execute after a 
directory is created

At a certain level it sounds like you want a batch file not a declarative 
transacted install.
On Mon, May 21, 2012 at 7:17 AM, Hoover, Jacob 
<jacob.hoo...@greenheck.com<mailto:jacob.hoo...@greenheck.com>> wrote:
While it may be possible to do this, I certainly would stay away from any 
scripting language custom actions. The most difficult part of this would be to 
make it transactional/handling rollbacks. One option would be to store the 
database creation and modification scripts with the application and on first 
run after install or update, have your application execute the SQL scripts.

From: Patil, Yukti [mailto:yukti.pa...@adp.com<mailto:yukti.pa...@adp.com>]
Sent: Monday, May 21, 2012 8:57 AM
To: wix-devs@lists.sourceforge.net<mailto:wix-devs@lists.sourceforge.net>
Subject: [WiX-devs] Wix Installation Custom Action to Execute after a directory 
is created

Hi all,
I have a config file to read database settings and set properties for
the wix installer database creation.
I want the installer to follow a sequence i.e

1. Put config file on a location
2. Execute custom action that call a vb/js script that reads
properties from config file for WIX
3. Then create sql database that would be a component
4. Then crete a few more directories
5. Then execute exe

Is this possible?
Or is there any other alternative to this(as I want the database
configurable everytime for every new installer version ,so the details
would be in config file)

Thanks,
yukti

________________________________
This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, notify the sender immediately by return email and delete the message 
and any attachments from your system.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net<mailto:WiX-devs@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wix-devs



--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to