save logfile

4 Messages Forum Options Options
Embed this topic
Permalink
caryptes
save logfile
Reply Threaded More
Print post
Permalink
I need to save the logfile of the installation-process everytime.
If i use the InstallUISequence it works, but not if i use the InstallExecuteSequence. Why?


<InstallUISequence>
        <Custom Action="EnableLog" Sequence="1"></Custom>
</InstallUISequence>

or

<InstallExecuteSequence>
        <Custom Action="EnableLog" Sequence="1"></Custom>
</InstallExecuteSequence>



<Binary Id="CustomLogs.vbs" SourceFile="CustomLogs.vbs"  />
<CustomAction Id="EnableLog" BinaryKey="CustomLogs.vbs" VBScriptCall="LogEnable" Return="check" />
------------------------
function LogEnable
        Session.Installer.EnableLog "voicewarmup", "C:\setup.log"
end function
------------------------
______________________________________________________________
"Hostage" mit Bruce Willis kostenlos anschauen!
Exklusiv für alle WEB.DE Nutzer. http://www.blockbuster.web.de


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users
Buddell, James
Re: save logfile
Reply Threaded More
Print post
Permalink
Can you put the date and time in the log file name? Or use /l*v+ on the command line to append to the old log file?

Cheers,
James

-----Original Message-----
From: wix-users-bounces@... [mailto:wix-users-bounces@...] On Behalf Of caryptes@...
Sent: 29 August 2008 14:07
To: wix-users@...
Subject: [WiX-users] save logfile

I need to save the logfile of the installation-process everytime.
If i use the InstallUISequence it works, but not if i use the InstallExecuteSequence. Why?


<InstallUISequence>
        <Custom Action="EnableLog" Sequence="1"></Custom> </InstallUISequence>

or

<InstallExecuteSequence>
        <Custom Action="EnableLog" Sequence="1"></Custom> </InstallExecuteSequence>



<Binary Id="CustomLogs.vbs" SourceFile="CustomLogs.vbs"  /> <CustomAction Id="EnableLog" BinaryKey="CustomLogs.vbs" VBScriptCall="LogEnable" Return="check" />
------------------------
function LogEnable
        Session.Installer.EnableLog "voicewarmup", "C:\setup.log"
end function
------------------------
______________________________________________________________
"Hostage" mit Bruce Willis kostenlos anschauen!
Exklusiv für alle WEB.DE Nutzer. http://www.blockbuster.web.de


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This e-mail is confidential and the information contained in it may be privileged.  It should not be read, copied or used by anyone other than the intended recipient.  If you have received it in error, please contact the sender immediately by telephoning +44 (0)20 7623 8000 or by return email, and delete the e-mail and do not disclose its contents to any person.  We believe, but do not warrant, that this e-mail and any attachments are virus free, but you must take full responsibility for virus checking.  Please refer to http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail disclaimer statement and monitoring policy.

Dresdner Kleinwort is the trading name of the investment banking division of Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner Kleinwort Limited, Dresdner Kleinwort Securities Limited and their affiliated or associated companies.  Dresdner Bank AG is a company incorporated in Germany with limited liability and registered in England (registered no. FC007638, place of business 30 Gresham Street, London EC2V 7PG), and is authorised by the German Federal Financial Supervisory Authority and by the Financial Services Authority ('FSA') and regulated by the FSA for the conduct of designated business in the UK.  Dresdner Kleinwort Limited is a company incorporated in England (registered no. 551334, registered office 30 Gresham Street, London EC2V 7PG), and is authorised and regulated by the FSA.  Dresdner Kleinwort Securities Limited is a company incorporated in England (registered no. 1767419, registered office 30 Gresham Street, London EC2V 7PG), and is authorised and regulated by the FSA.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users
caryptes
Re: save logfile
Reply Threaded More
Print post
Permalink
Yes,
the attached code is only a simplified version. the real code uses a
different directory and a random name.

But my problem is, that the file is not even created if i use only the
installexecute-sequence. and i would prefer to use that sequence.

regards
Bernd


Buddell, James schrieb:

> Can you put the date and time in the log file name? Or use /l*v+ on the command line to append to the old log file?
>
> Cheers,
> James
>
> -----Original Message-----
> From: wix-users-bounces@... [mailto:wix-users-bounces@...] On Behalf Of caryptes@...
> Sent: 29 August 2008 14:07
> To: wix-users@...
> Subject: [WiX-users] save logfile
>
> I need to save the logfile of the installation-process everytime.
> If i use the InstallUISequence it works, but not if i use the InstallExecuteSequence. Why?
>
>
> <InstallUISequence>
> <Custom Action="EnableLog" Sequence="1"></Custom> </InstallUISequence>
>
> or
>
> <InstallExecuteSequence>
> <Custom Action="EnableLog" Sequence="1"></Custom> </InstallExecuteSequence>
>
>
>
> <Binary Id="CustomLogs.vbs" SourceFile="CustomLogs.vbs"  /> <CustomAction Id="EnableLog" BinaryKey="CustomLogs.vbs" VBScriptCall="LogEnable" Return="check" />
> ------------------------
> function LogEnable
> Session.Installer.EnableLog "voicewarmup", "C:\setup.log"
> end function
> ------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@...
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>  



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6
Re: save logfile
Reply Threaded More
Print post
Permalink
caryptes@... wrote:
> But my problem is, that the file is not even created if i use only the
> installexecute-sequence. and i would prefer to use that sequence.
>  

You can't start logging from within a custom action. The MsiEnableLog
doc says:

The *MsiEnableLog* function sets the log mode for all subsequent
installations that are initiated in the calling process.

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@...
https://lists.sourceforge.net/lists/listinfo/wix-users