Re: [WiX-users] Executing CA after InstallFiles

2011-03-04 Thread vunder
I found that to get data from CustomActionData property I need to set propetry which named same as a CA: But I steel cannot mo

Re: [WiX-users] Executing CA after InstallFiles

2011-03-04 Thread vunder
Any idea's? Any examples? -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Executing-CA-after-InstallFiles-tp6076921p6088101.html Sent from the wix-users mailing list archive at Nabble.com.

Re: [WiX-users] Executing CA after InstallFiles

2011-03-02 Thread vunder
extern "C" UINT __stdcall BoxUpdate(MSIHANDLE hInstall) { TCHAR szPath[500], szStr[1000], szBoxAddresses[1000], szBox[NI_MAXHOST]; DWORD dwLen; if (MsiGetMode(hInstall, MSIRUNMODE_SCHEDULED) == FALSE) { MsiSetProperty(hInstall, L"CustomAc

Re: [WiX-users] Executing CA after InstallFiles

2011-03-02 Thread vunder
I see. I need to use deferred custom action. As I understand, I cannot access to installation in deferred CA, only several propperties like "CustomActionData". But I cannot get it's value. ... if (MsiGetMode(hInstall, MSIRUNMODE_SCHEDULED) == TRUE) { TCHAR szPath[500]; UINT

Re: [WiX-users] Executing CA after InstallFiles

2011-03-02 Thread vunder

[WiX-users] Executing CA after InstallFiles

2011-03-01 Thread vunder
I'm trying to execute CA after InstallFiles (I want to execute it after files are copied): -1) AND NOT

Re: [WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread vunder
Thanks for advice. I thought that vbscript can help me to decide this problem. The rigth thoise is C++ custom action! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-execute-binary-in-VBScript-custom-action-tp5931213p5932241.html Sent from th

Re: [WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread vunder
Thanks. But I need to run file during installation. Seems I have to write new CA dll, extract file in it, run it and return result in variable -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-execute-binary-in-VBScript-custom-action-tp5931213p

[WiX-users] How to execute in VBScript-custom action

2011-01-17 Thread vunder
I hahe an executable file stored in element: I need to execute it in my vbscript custom action and then depends on return code set some value to variable. To run files I am using: Set wshshell = WScript.CreateObject ("WScript.shell") wshshell.Run ("%comspec% C:\CheckIDE\CheckIDE.exe

Re: [WiX-users] Feature State on Upgrade as a condition

2010-12-01 Thread vunder
I had the same problem. First of all you must know, that installed features has different state, even if they marked "Install from local source". You need to add a new rule to condition, what will check state of the installed freature. To check state of installig feature use & symbol, to check sta

Re: [WiX-users] CloseApplication issue

2010-11-15 Thread vunder
Message was shown when I used WiX 3.5. I try to compile msi with WiX 3.6 and there was no message! Hurray!!! So on WiX 3.6 there is no problem! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CloseApplication-issue-tp5731506p5739838.html Sent from t

[WiX-users] CloseApplication issue

2010-11-12 Thread vunder
Trying to check running application. I have some problem. Application checking normal, but after finishing installation I allways have got a message what I need to reboot system. It does not depend on was application running while install or not. It's shows allways. -- V

Re: [WiX-users] MSI validation on Windows Server 2008

2010-05-22 Thread vunder
I cannot add admin rights to every build account. Project compiling not automatic, compilation starts by user commends. Several users can start compilation but they are not administators. So a cannot give them admin rights. -- View this message in context: http://windows-installer-xml-wix-toolse

[WiX-users] MSI validation on Windows Server 2008

2010-05-20 Thread vunder
I have an automatic project build on Windows Server 2008 and could not validate msi-package. light.exe/smoke.exe returns an exception "Could not access to Windows Installed Service". I found some messages how this can be solved, but it does not take any affect. I tried to change registry value (HK

Re: [WiX-users] Problems with MsiProcessMessage()

2010-05-12 Thread vunder
I looked at "MsiProcessMessage Function" and at "Sending Messages to Windows Installer Using MsiProcessMessage " but there are no information about this. But if you right it means that I cannot use MsiProcessMessage() at custom actions called by PushButton? -- View this message in context: http:

[WiX-users] Problems with MsiProcessMessage()

2010-05-12 Thread vunder
I am using MsiProcessMessage() to log messages and to show simple dialogs. But now have some problems with it. I added a custom action to button. At that action I am trying to log some message and show dialog, but nothing happens!

[WiX-users] Display UI Dialog from custom action dll

2010-04-30 Thread vunder
How to display UI dialog from C++ custom action? I found function MsiPreviewDialog(). It need a handle to the preview. I Found MsiEnableUIPreview() function, whitch need a handle to database. I try to get database handle from MsiGetActiveDatabase() and MsiOpenDatabase() and it was allways 0. P.S.

Re: [WiX-users] Writing own Wix Extension

2010-04-29 Thread vunder
Thanks for answer. The problem was in type of xsd-resource, it was just included file. I changed type type "Embedded Resource" and schema loaded successfull! -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Writing-own-Wix-Extension-tp4968486p4980011

Re: [WiX-users] Writing own Wix Extension

2010-04-29 Thread vunder
Could not understand, where error Xsd: http://www.w3.org/2001/XMLSchema"; xmlns:xse="http://schemas.microsoft.com/wix/2005/XmlSchemaExtension"; targetNamespace="http://schemas.www.stc-spb.ru/wix/InterBaseExtension"; > http://schemas.microsoft.com/wix/2006/wi"; />

Re: [WiX-users] Writing own Wix Extension

2010-04-28 Thread vunder
As I understand extension does not do anything (I mean actions during installation), it only add new tables in MSI-database or modify existing. Real actions providing by custom actions, executing as allways after "InstallFiles". Am I right? -- View this message in context: http://windows-install

[WiX-users] Writing own Wix Extension

2010-04-27 Thread vunder
I could not find normal step-by-step help, how to write extension. I wrote a extension class and compiler class, assembly is loading by candle.exe/light.exe (http://blogs.msdn.com/pmarcu/archive/2007/11/02/wix-writing-your-own-wix-extension-part-1.aspx) but what next? I want to write some Borland

Re: [WiX-users] Problems with adding items to ListBox

2010-04-09 Thread vunder
Problem solving with this query: swprintf_s(lPath, L"INSERT INTO `ListBox` (`Property`,`Order`,`Value`,`Text`) VALUES ('SELECTEDGUICONFIG', %d, '%d', '%s') TEMPORARY", i++, i, sr.cFileName); I added "TEMPORARY" at the end of the query and it work's -- View this message in context: http://n2

Re: [WiX-users] Problems with adding items to ListBox

2010-04-09 Thread vunder
e(). I call it after MsiDatabaseOpenView(): if (MsiViewExecute(hView, rr) != ERROR_SUCCESS) LogMsiMessage(hInstall, L"MsiViewExecute() error!"); At Log I see: MSI (c) (9C:0C) [16:46:05:000]: Invoking remote custom action.

[WiX-users] Problems with adding items to ListBox

2010-04-09 Thread vunder
oseHandle(hView); } } while (FindNextFile(hF, &sr) != 0); //MsiDatabaseCommit(hDB); MsiCloseHandle(hDB); FindClose(hF); } return ERROR_SUCCESS; } At log I see errors: 11:49:59: CAFillSavedConfigs. MSI (c

Re: [WiX-users] Do not remove some files on major upgrade

2010-02-11 Thread vunder
Any ideas??? -- View this message in context: http://n2.nabble.com/Do-not-remove-some-files-on-major-upgrade-tp4505876p4554525.html Sent from the wix-users mailing list archive at Nabble.com. -- SOLARIS 10 is the OS for

Re: [WiX-users] Do not remove some files on major upgrade

2010-02-09 Thread vunder
Here link to full log: version 4.1.0130 and upgrade to 4.1.0131 http://slil.ru/28623390 -- View this message in context: http://n2.nabble.com/Do-not-remove-some-files-on-major-upgrade-tp4505876p4546214.html Sent from the wix-users mailing list archive at Nabble.com.

Re: [WiX-users] Do not remove some files on major upgrade

2010-02-09 Thread vunder
At upgrade log (searching ComponentId 'TestFile'): 9:36:43: CostFinalize. ... MSI (s) (BC:C0) [09:37:00:781]: Component: TestFile; Installed: Absent; Request: Local; Action: Local ... 9:37:02: InstallValidate. ... MSI (s) (BC:E4) [09:37:02:093]: Component: TestFile; Installed: Local; Reque

Re: [WiX-users] Do not remove some files on major upgrade

2010-02-08 Thread vunder
Where can I see that in log? -- View this message in context: http://n2.nabble.com/Do-not-remove-some-files-on-major-upgrade-tp4505876p4539524.html Sent from the wix-users mailing list archive at Nabble.com. -- The Plan

Re: [WiX-users] Do not remove some files on major upgrade

2010-02-04 Thread vunder
I have a component with only one file in it. At first install file must be installed. At upgrade it does not need to be installed. Component has the same GUID in two installation packages, what differs by version. RemoveExistingProducts placed in InstallExecuteSequence: -- View

Re: [WiX-users] Storing variale value after installation

2010-02-04 Thread vunder
It's only some string value. My program requires quoted string values in registry. At installation I entering some value in edit and then it must be written in registry with quotes. But default value of edit control must be read from registry, where it written with quotes. I need read those value,

[WiX-users] Do not remove some files on major upgrade

2010-02-02 Thread vunder
When application is upgrading some files must be updated and some of them not. But at upgrade all files are deleting. What condition I must define to Component/File to save it on major upgrade? -- View this message in context: http://n2.nabble.com/Do-not-remove-some-files-on-major-upgrade-tp450

Re: [WiX-users] Storing variale value after installation

2010-02-02 Thread vunder
Thanks, it works! Next question: after reading value from registry, can I remove some symbols? In my case I need to remove quotes from string -- View this message in context: http://n2.nabble.com/Storing-variale-value-after-installation-tp4500806p4505838.html Sent from t