Thanks for the reply.
Now somehow I am able to suppress the dos window. But now I am stuck at some
different problem.
code snippet is:

<CustomAction Id="SETRUNBATCH" Property="RUNBATCH"
Value="&quot;[RUNBAT]&quot; &quot;[DEFAULTINSTALLLOC]&quot;
&quot;[JAREXE]&quot;" />
    <CustomAction Id="RUNBATCH" BinaryKey="WixCA" DllEntry="CAQuietExec"
Return="ignore" Execute="deferred" Impersonate="yes" />

<InstallUISequence>
<Custom Action="SETRUNBATCH"
Sequence="6531"><![CDATA[INSTALLED_PRODUCTVERSION=""]]></Custom>
        <Custom Action="RUNBATCH"
Sequence="6532"><![CDATA[INSTALLED_PRODUCTVERSION=""]]></Custom>
.....
</InstallUISequence>

But when I run the installer it throwing error 2762 and quits the
installation. I rendered the log file then I got following error:
DEBUG: Error 2762:  Unable to schedule operation. The action must be
scheduled between InstallInitialize and InstallFinalize.

But I want to run this custom action after files are copied onto the system.
that is not after installfiles action.
Why it's throwing this error?
Can anyone help me out?

Thanks,
Hukum

2009/4/25 Brian Bakkebo <bbakk...@gmail.com>

> Just worse after I see what your batch files says changeregbat.  if you are
> changing registry entries you can do it through wix very simply plus you
> get
> the rollback.
> http://wix.sourceforge.net/manual-wix3/write_a_registry_entry.htm
> If you want to do alot of registry entries based on multiple files,
> consider
> looking at heat..
>
>
> Obviously problem is here: Error 0x80070057: failed to get Command Line
> Take a look at this:
> http://osdir.com/ml/windows.devel.wix.user/2005-02/msg00204.html
> and this:
>
> http://n2.nabble.com/QtExecDeferred-error-about-quoted-application-name-td2417178.html
> Maybe it will help...
>
>
> Med vennlig hilsen /Regards
> Brian
>
>
>
>
> 2009/4/25 Hukumchand Shah <hukum.s...@gmail.com>
>
> > Hi Thank you for reply,
> >
> > I got following error in the log file.
> > MSI (s) (98:A8) [17:55:01:125]: Doing action: CHANGEREGBAT
> > MSI (s) (98:A8) [17:55:01:125]: Note: 1: 2205 2:  3: ActionText
> > Action 17:55:01: CHANGEREGBAT.
> > Action start 17:55:01: CHANGEREGBAT.
> > MSI (s) (98:A8) [17:55:01:265]: Creating MSIHANDLE (1) of type 790542 for
> > thread 5288
> > MSI (s) (98:C8) [17:55:01:265]: Invoking remote custom action. DLL:
> > C:\WINDOWS\Installer\MSI1511.tmp, Entrypoint: CAQuietExec
> > MSI (s) (98:18) [17:55:01:281]: Generating random cookie.
> > MSI (s) (98:18) [17:55:01:281]: Created Custom Action Server with PID
> 4652
> > (0x122C).
> > MSI (s) (98:E4) [17:55:01:328]: Running as a service.
> > MSI (s) (98:10) [17:55:01:328]: Hello, I'm your 32bit Impersonated custom
> > action server.
> > MSI (s) (98!04) [17:55:01:546]: Creating MSIHANDLE (2) of type 790541 for
> > thread 4100
> > MSI (s) (98!04) [17:55:01:546]: Creating MSIHANDLE (3) of type 790531 for
> > thread 4100
> > CAQuietExec:  Error 0x80070057: failed to get command line data
> > MSI (s) (98!04) [17:55:01:546]: Closing MSIHANDLE (3) of type 790531 for
> > thread 4100
> > MSI (s) (98!04) [17:55:01:546]: Creating MSIHANDLE (4) of type 790531 for
> > thread 4100
> > CAQuietExec:  Error 0x80070057: failed to get Command Line
> > MSI (s) (98!04) [17:55:01:546]: Closing MSIHANDLE (4) of type 790531 for
> > thread 4100
> > MSI (s) (98!04) [17:55:01:546]: Closing MSIHANDLE (2) of type 790541 for
> > thread 4100
> > MSI (s) (98:C8) [17:55:01:546]: Closing MSIHANDLE (1) of type 790542 for
> > thread 5288
> > �f tion ended 17:55:01: CHANGEREGBAT. Return value 3.
> >
> > Can anyone tell me what's the error?
> >
> > Thanks & Regards,
> > Hukum
> >
> >
> > On Sat, Apr 25, 2009 at 5:48 PM, Brian Bakkebo <bbakk...@gmail.com>
> wrote:
> >
> > > Hukum, I would try immediate Execute="immediate"  Also I would log the
> > > install to see if you can find the problem(see below)
> > > Other than that,  I second what Brian said below as well as Rob has
> said
> > > many times, dont use batch files in your installer, you are asking for
> > > problems.
> > >
> > > >From wix help:
> > >
> > > When authoring installers it is often necessary to get a log of the
> > > installation for debugging purposes. This is particularly helpful when
> > > trying to debug file searches and launch conditions. To obtain a log of
> > an
> > > installation use the command line msiexec
> > > tool<http://support.microsoft.com/kb/227091>
> > > :
> > >
> > > msiexec /i MyApplication.msi /l*v MyLogFile.txt
> > >
> > > This will install your application and write a verbose log to
> > MyLogFile.txt
> > > in the current directory.
> > >
> > > If you need to get a log of your installer when it is launched from the
> > > Add/Remove Programs dialog you can enable Windows Installer logging via
> > the
> > > registry <http://support.microsoft.com/kb/223300>.
> > >
> > >
> > > Med vennlig hilsen /Regards
> > > Brian
> > >
> > >
> > >
> > >
> > > 2009/4/25 Hukumchand Shah <hukum.s...@gmail.com>
> > >
> > > > Thank you for the solution.
> > > > Now I am using the 'QtExec' but when i make the .msi and run it then
> > it's
> > > > ending prematurely.
> > > > here is the code snippet i am using:
> > > > <Property Id="RUNBAT">C:\Program Files\APP\run.bat</Property>
> > > > <CustomAction Id="RUNBAT" BinaryKey="WixCA" DllEntry="CAQuietExec"
> > > > Return="check" Execute="deferred" Impersonate="yes" />
> > > >
> > > > <InstallExecuteSequence>
> > > >      <Custom Action="RUNBAT" Sequence="6524">1</Custom>
> > > >    </InstallExecuteSequence>
> > > >
> > > > Am I doing anything wrong in above code?
> > > > Please help?
> > > >
> > > > Thanks & Regards,
> > > > Hukum
> > > >
> > > >
> > > > On Wed, Apr 22, 2009 at 9:47 PM, Brian Rogers <
> rogers.br...@gmail.com
> > > > >wrote:
> > > >
> > > > > Hey Hukum,
> > > > >
> > > > > > you can achieve this using  "QtExec".
> > > > >
> > > > > That said, it is best that you not use Batch files when doing an
> > > > > installation. They are difficult to control and can lead to some
> > large
> > > > > issues. You should look into custom actions which support
> > > > > Install/Rollback/Uninstall to make sure your product install and
> > > > uninstall
> > > > > are stable.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Brian Rogers
> > > > > "Intelligence removes complexity." - Me
> > > > > http://icumove.spaces.live.com
> > > > >
> > > > >
> > > > > On Wed, Apr 22, 2009 at 5:48 AM, lesterbangs <datapa...@gmail.com>
> > > > wrote:
> > > > >
> > > > > >
> > > > > > Hi Hukum, you can achieve this using  "QtExec".  Look in the
> > WiX.chm
> > > > help
> > > > > > file under Advanced WiX Topics->Standard Custom Actions->Quiet
> > > > Execution
> > > > > > Custom Action for more info.
> > > > > >
> > > > > >
> > > > > > Hukumchand Shah wrote:
> > > > > > >
> > > > > > > Hi All,
> > > > > > >
> > > > > > > I am executing some batch files from wix custom actions. I want
> > to
> > > > > > > suppress
> > > > > > > or hide or minimize the dos windows.
> > > > > > > Can anyone help me in this?
> > > > > > > How we can achive this in wix?
> > > > > > >
> > > > > > > Thanks & Regards,
> > > > > > > Hukum
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------------
> > > > > > > Stay on top of everything new and different, both inside and
> > > > > > > around Java (TM) technology - register by April 22, and save
> > > > > > > $200 on the JavaOne (SM) conference, June 2-5, 2009, San
> > Francisco.
> > > > > > > 300 plus technical and hands-on sessions. Register today.
> > > > > > > Use priority code J9JMT32. http://p.sf.net/sfu/p
> > > > > > > _______________________________________________
> > > > > > > WiX-users mailing list
> > > > > > > WiX-users@lists.sourceforge.net
> > > > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > > >
> > > >
> > >
> >
> http://n2.nabble.com/how-to-suppress-the-batch-file-dos-prompt-in-wix--tp2675840p2675878.html
> > > > > > Sent from the wix-users mailing list archive at Nabble.com.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------------
> > > > > > Stay on top of everything new and different, both inside and
> > > > > > around Java (TM) technology - register by April 22, and save
> > > > > > $200 on the JavaOne (SM) conference, June 2-5, 2009, San
> Francisco.
> > > > > > 300 plus technical and hands-on sessions. Register today.
> > > > > > Use priority code J9JMT32. http://p.sf.net/sfu/p
> > > > > > _______________________________________________
> > > > > > WiX-users mailing list
> > > > > > WiX-users@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------------
> > > > > Stay on top of everything new and different, both inside and
> > > > > around Java (TM) technology - register by April 22, and save
> > > > > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> > > > > 300 plus technical and hands-on sessions. Register today.
> > > > > Use priority code J9JMT32. http://p.sf.net/sfu/p
> > > > > _______________________________________________
> > > > > WiX-users mailing list
> > > > > WiX-users@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > >
> > > >
> > > >
> > >
> >
> ------------------------------------------------------------------------------
> > > > Crystal Reports &#45; New Free Runtime and 30 Day Trial
> > > > Check out the new simplified licensign option that enables unlimited
> > > > royalty&#45;free distribution of the report engine for externally
> > facing
> > > > server and web deployment.
> > > > http://p.sf.net/sfu/businessobjects
> > > > _______________________________________________
> > > > WiX-users mailing list
> > > > WiX-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Crystal Reports &#45; New Free Runtime and 30 Day Trial
> > > Check out the new simplified licensign option that enables unlimited
> > > royalty&#45;free distribution of the report engine for externally
> facing
> > > server and web deployment.
> > > http://p.sf.net/sfu/businessobjects
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Crystal Reports &#45; New Free Runtime and 30 Day Trial
> > Check out the new simplified licensign option that enables unlimited
> > royalty&#45;free distribution of the report engine for externally facing
> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
>
> ------------------------------------------------------------------------------
> Crystal Reports &#45; New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty&#45;free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to