Thanks so much Peter.
Your suggestion works like a charm.
Regards
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-check-for-Acrobat-reader-tp6223495p6227952.html
Sent from the wix-users mailing list archive at Nabble.com.
Thanks for your suggestion Christian.
I followed your adive but looks like my CA is not getting called at all. I
checked the verbose log and there is no entry of my CA.
Following is how I have defined and sequenced my custom action.
SOLUTIONEXISTS = notexists
NOT Installed
NOT
I need to check if any version of acrobat reader is installed on target
machine. IF not installed display error message and stop installation.
Wix code:
ACROBATREADER = notfound
My problem is,above message always gets displayed whether or not acrobat
reader is installed or not. It does
Is there a way to check if certain path or Key exists in registry?
I have similar condition set for Silverlight which works great. but not for
acrobat reader.
The difference in registry search is as follows
please advice. thanks
--
View this message in context:
My C# CA is setting the value of a property SOLUTIONEXISTS and its setting
is correctly based on conditions.
But in my wix code, my condition element is not working as expected.
Following message is displayed even if value for SOLUTIONEXISTS is
notexists. I did checked the log file and the value
My CA is scheduled before AppSearch, since I want to check first if database
exists and accordingly continue or discontinue installation
Code:
SOLUTIONEXISTS = exists
NOT Installed
--
View this message in context:
I am sorry...following is the relavant code snippet. I hope this helps. :)
(declaring properties...)
(defining custom action...)
SOLUTIONEXISTS = exists
(sequencing custom action...)
NOT Installed
NOT Installed
NOT INSTALLED
NOT Installed
CONFIGFILEPATH
Thanks for the suggestion Chad.
One more thing...this registry key (HKLM\SOFTWARE\Adobe\Acrobat
Reader\9.0\Installer) will work on Windows XP. But not for Windows 7 or
Server 2008 as I cant find relavent key here. Any sugguestions what can be
done for these OS.
Regards
--
View this message in
Yes I do. Following is the function call to get the data from session.
public static string[] GetCustomActionDataArguments(Session session)
{
string[] keys = new string[session.CustomActionData.Keys.Count];
session.CustomActionData.Keys.CopyTo(keys, 0);
Thanks Chris.
can you give me an example of how to work with SecureCustomProperty, please?
thanks
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-values-to-CA-not-working-tp6216967p6220094.html
Sent from the wix-users mailing list archive
Thanks Chris, its working now. But following code to check a property value
is not working
My CA is setting the value of a property SOLUTIONEXISTS and its setting is
correctly based on conditions.
But in my wix code, my condition element is not working as expected.
Following message is displayed
Quite strange!! For one of my C# custom action I can pass the values of
properties. BUt same thing is not working for other CA.
I am getting System.IndexOutOfRangeException error in log file. However
these properties are set to proper values as shown in log entry below:
Action start 15:43:39:
GetSolutionDBCA (immediate CA) is the custom action which will be using these
properties, which are passed using custom action SolutionDBConnection as
displayed in code below:
These CAs are scheduled as below:
NOT Installed
NOT Installed
--
View this message in context:
No suggestions? I am in real need to get this going. Kindly help
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Urgent-Please-help-Could-not-open-key-HKEY-CURRENT-USER-Software-Classes-MyAppAssembly-tp6201872p6204451.html
Sent from the wix-users
How can i populate a control with the name of the computer on which msi is
executed.
I used [ComputerName] and [COMPUTERNAME] property but its not working.
Please advice.
thanks
--
View this message in context:
[LocalMachine] is also not working for me
Please advice
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Get-computer-name-tp6205253p6205348.html
Sent from the wix-users mailing list archive at Nabble.com.
Following is code from my .wxs file:
Code from my custom UI dialog
When i execute msi, editMachineName control displays [ComputerName] instead
of my machine name.
Please let me know what am I doing wrong here. Thanks
--
View this message in context:
Mat, tried your suggestion, but I am getting blank value in control
My code:
Thanks for all you help
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Get-computer-name-tp6205253p6205517.html
Sent from the wix-users mailing
Thank you very much Mat. My code is working now following your suggestions.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Get-computer-name-tp6205253p6205570.html
Sent from the wix-users mailing list archive at Nabble.com.
How can i check if a SQL Server database exists and display an error message
if it does and stop installation process
I am using WIX 3.5
Please advice. Thanks
--
View this message in context:
Thanks. I had a doubt about that.
So I can set a property in custom action if a database exists or not and
based on its value display error message?
Do I need to use condition statement to trigger message?
--
View this message in context:
Hello,
I created setup for my applicaiton using WIX 3.5. Installer works fine for
first time. But after uninstalling application and then reinstalling again
on same machine, I get following error message:
Could not ope key: HKEY_CURRENT_USER\Software\Classes\XCore12\...\myapp.
Verify that you
Can someone please help me with this issue?
I checked that Network Service account was not having full control
permission on C:\Program Files\Microsoft SQL Server folder and subfolders
where is the default path to create database.
Still database creation is failing with this error (as mentioned
Thanks for reply Mike.
Yes I am using Windows Authentication to connect to database. However when
installing SQL Server 2008 Express edition I selected Mixed mode.
I am attaching my code here (since due to some wierd error my code is not
visible in post)
Ok, Keeping it simple:
I need to create database and other objects using my msi. Target machine is
Windows XP SP3 and SQL Server 2008 express edition.
I am using following code to create database but its failing with error
code: Error 26201. Error -2147467259: failed to create SQL database This
Mike,
My SQL script is not having GO command after each sql statement. The reason
being the sql scripts works perfect when executed manually in Management
studio.
If nothing works then I have to create database from within sql script
Create database
tag is simply not working in this
Michael,
In my code I am not specifying paths for MDF and LDF files. I am just using
tag to create DB. What confuses me is that this same code works on Windows 7
machine and not on XP. I installed SQL Express on XP box is same way as I
did on windows 7.
Also,
SQL Server Express will be
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Error-26201-Error-2147467259-failed-to-create-SQL-database-tp6163225p6173147.html
Sent from the wix-users mailing list archive at Nabble.com.
I am not sure why my code is not visible. when I edit my message I see the
code there.
Anyways I have attached .txt file having create database code from .wxs file
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n6173167/CreateDatabaseScript.txt
CreateDatabaseScript.txt
Michael,
Can you please guide me on how should I check the file permissions for SQL
Server? While installing SQL Express I did used NT AUTHORITY\NETWORK SERVICE
account.
thanks
--
View this message in context:
Hello,
I am trying to create database and table in SQL Server 2008 using scripts.
The script works fine when executed manually in Management studio. But fails
with above error Error 26201. Error -2147467259: failed to create SQL
database when executed from installer.
My target machine is Windows
Thanks so much for the reply.
I would go ahead with CA for now.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Read-value-from-database-query-tp6024569p6029406.html
Sent from the wix-users mailing list archive at Nabble.com.
I installed the new Wix 3.5 RTM and now that rpoblem is gone.
Thanks so much Rob.
Regards.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WriteIIS7ConfigChanges-Stuck-with-1603-error-codes-tp6001526p6024265.html
Sent from the wix-users mailing
Thank you all for your reply.
@Michael, Go statements did the trick. The database is now dropped on
uninstall and on rollbacks.
Many Thanks again :-)
--
View this message in context:
We are storing product versions in a database table. Now I have 2 questions:
1) With my installer how can I check if a database with specific name exists
2) And if database exists query the table to fetch version.
I know one way to do this is through custom action and setting a property
with
Still an issue after reboot. Any further suggestions please. I am really
stuck here. Tagert machine is Windows 7-32bit .
Lines from log file:
Action 10:17:33: StartIIS7ConfigTransaction. Starting IIS Config Transaction
Action 10:17:34: RollbackIIS7ConfigTransaction. Rolling back IIS Config
I want to drop the database installed by my msi on uninstall. It does drops
the Db on roll-back but not on uninstall. Following is the code from my
config file. Since setting DropOnUninstall=yes did not worked, so I added
other sql string to execute Drop database command. I am not receiving any
@Rob, I am using WIX 3.5.2229 (29-Oct-2010)
@Pierson, I did checked, no virtual directory exists initially by the name
that my setup is trying to create.
Any suggestions please on how can I reslove the problem?
Sincere thanks!
--
View this message in context:
Thanks for th reply Neil.
If possible can you please provide an example of the configuration file used
with dotNEtInstaller that checks if SQL Server is installed or not and if
not available installs it?
--
View this message in context:
Thanks will post questions there. :-)
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CustomAction-fails-with-error-code-1603-tp6000977p6009679.html
Sent from the wix-users mailing list archive at Nabble.com.
Thanks for your reply!
Pally,
I did checked the verbose log, and SQLSERVER variable is having name of the
instance installed on system. But I need to populate a property with this
instancename, which I am not able to get.
Albert,
Yes I am checking the InstalledInstances in the registry as
I am in need to check if SQLExpress is installed on target machine before
installing my product. If not installed, my product's msi will install
SQLEXpress first.
I created a C# custom action to install SQLExpress using command line. When
executing this command directly on cmd prompt SQLExpress
Thanks so much for the suggestions guys :-)
I will definitly look at the dotNetInstaller bootstapper.
Please correct me if I have misunderstood:
I can still call this bootstrapper from my msi, which will install all the
prerequisites and once all is successful, my msi can resume with
Receving following error when trying to create a website from msi. Target
machine is Windows 7-32 bit machine. To my surprise, this same code has work
numerous times before on different hadrware without any issues.
Snippet from log file:
Action 12:34:42: StartIIS7ConfigTransaction. Starting IIS
Using WIX i would like to know what instance of SQL Server is installed on
target machine and set it as one of the property value to be displayed in my
custom dialog.
I am using the following code to find if SQL Server is installed or not and
using SQLSERVER to set the my control's value, but its
Using WIX i would like to know what instance of SQL Server is installed on
target machine. If installed, get the name and set it as one of the property
value to be displayed in my custom dialog.
I am using the following code to find if SQL Server is installed and using
SQLSERVER property to set
Thanks for the reply Maksim. Can you please give me an example of how to
provide full path?
I changed the value for INSTALLIISPROP from [SystemFolder] to
C:\Windows\System32\pkgmgr.exe.
But it gives error: Operation Failed. A parameter is incorrect.
Property Id=INSTALLIISPROP
I figured it out!!
Posting the solution in case anyone else needs the same :-)
Property Id=INSTALLIISPROP
Value=C:\Windows\System32\dism.exe/Property
CustomAction Id=InstallIISCA Return=check
Property=INSTALLIISPROP Execute=deferred HideTarget=yes
Impersonate=yes
Hello,
I am using following custom action to install IIS 7 using .msi if its not
already installed on targeted system. I am getting following errror and my
installation fails. I have used quite a few CA in my msi and all work well.
However for this one I am not able to figure out what the
Thanks for you reply John.
I did changed the ExeCommand as you mentioned but still the same errror: Any
more suggestions as how to achieve this. Almost spent a day trying to make
this work!
Property Id=INSTALLIISPROP Value=[SystemFolder]/Property
CustomAction Id=InstallIISCA Return=check
Hello all,
I am in need to add a Features tree with checkbox selection to my msi. Can
any one point me to some sample as how to achieve this.
Sincere thanks!
--
View this message in context:
Thats perfect!! Everything is in place now.
Thanks so much for your guidance Blair :)
Keep up the good work of helping newbies like me :)
--
View this message in context:
Thankyou Mike. Your solution worked like a charm.
Regards.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/OpeFileDialog-C-Custom-Action-tp5860149p5890363.html
Sent from the wix-users mailing list archive at Nabble.com.
Hello all,
I need to update text of Edit control on my custom dialog from a property
that is being set by custom action. This custom control is to provide
OpenFileDialog to user and populate the Edit control with selected filename.
The property is getting set by CA but the control is not getting
I want to display OpenFileDialog using C# custom Action(since WIX does not
support this). I tried this but CA is not getting fired,instead my installer
hangs. I also checked if the OpenFileDialog is hidden behind the installer
window..which is not the case.
If I comment the OpenFileDialog dialog
Hi there,
Following code works for me to remove a website created under Default Web
Site during Uninstall:
//Define following component in a Directory Element
Component Id=IISConfiguration
Guid={F8C30A3F-BDCB-4E6E-89D1-CD672440C320} KeyPath=yes
iis:WebVirtualDir Id=WebSiteVirtualDir
Thanks for the reply Mike. I will try you suggestion and will post the
result!!
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/OpeFileDialog-C-Custom-Action-tp5860149p5860913.html
Sent from the wix-users mailing list archive at Nabble.com.
Thanks for your reply Rob.
I added the Copy file componen to my main feature element and after the new
files component, so in the following case OneCoreFiles should be executed
first and then ConfigCopyFile . But I am still getting the same
resultcomponents are not executed in the order
Thanks! I was able to achieve this using C# Custom action.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Sequencing-Components-in-Feature-Element-tp5845937p5853748.html
Sent from the wix-users mailing list archive at Nabble.com.
Hi Sangeeta1
Did you got the customise file open dialog working?
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Browse-Dialog-tp5413342p5845549.html
Sent from the wix-users mailing list archive at Nabble.com.
Is there a way for user to select a specific file using BrowseDlg? All i can
find is that you can select only a folder!! I believe File selection is one
of the common functionality needed.
Can anyone provide some suggestion on how this can be achieved.
Thanks!
--
View this message in context:
Hello all,
I want to replace a file that has been installed by my installer.
Problem:My executing sequence is not working correctly. The following code
is first creating file using the component ConfigCopyFile which is the
then getting replace by the file created by OneCoreFiles. I want this
No not yet. Still waiting for a reply from some Wix expert here. I will
definitly share it with you once I get some information :-)
Regards.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Browse-Dialog-tp5413342p5832302.html
Sent from the
Hello gapearce,
Can you please share the code on how to create the Custom fileopen dialog
and then using the selected file in further installation process.
Thanks so much.
--
View this message in context:
insight or direction.
Also consult the following documentation:
http://wix.sourceforge.net/manual-wix3/major_upgrade.htm
Best regards,
Kim
--
[cid:part1.05090902.09010709@metris.com]
Kim Gybels
Software Developer
kim.gyb...@nikonmetrology.commailto:kim.gyb...@nikonmetrology.com
Tel: +32 16
variables (e.g.: using
-dname=value switch to candle.exe), this is just the way we do it.
Do note though that 2010 will not be a valid MajorVersion because it
is bigger than 255, as Palbinder pointed out.
Best regards,
Kim
OK you clearly missed the point on the page linked so I'll do you
the most logical to me. So the uninstall should
check the registry
key for other existing versioned progids and set the unversioned progid
accordingly.
We are facing the same issues in our product and we have decided to drop
support for the
unversioned progids.
Best regards,
Kim
--
* *
*Kim
your application is uninstalled.
BTW: I took a quick peek at the merge modules from MS and they didn't
bother to mark the components in their merge modules as permanent.
- Kim
Simon Jackson wrote:
Am I correct in thinking that you mean we should just call the .exe which
comes from Microsoft
-a
If you do not know the name of the stream you can
use a tool like InstEdit to find out.
If there is a shorter method please let me know.
Best regards,
Kim
John Daintree wrote:
Hello all,
Is it possible to replace a file in an existing MSI package without having
to go through the build process
.
Is there someway to avoid the repacking? It would speed up the build with a
big factor if the cab file that is stored in the binary wixlib is just
imported
as a stream into the msi directly.
Any ideas of how to accomplish the wanted speedup?
- Kim
PS: the cab file for the library is 140MB on high
and what you think of the
two above.
Best regards,
Kim
Kim Gybels wrote:
Hi,
First of, let me try to explain what I am trying to accomplish. Our
application
uses a very big library that needs to be installed. This is a third
party library
and doesn't get updated a lot. I want to speed up
consult the C:\Program Files\Windows Installer XML v3\doc\WiX.chm
Also make sure the FindRelatedProducts action is executed, but I think
WiX will do this for you when you have the Upgrade element.
http://msdn.microsoft.com/en-us/library/aa368600(VS.85).aspx
Best regards,
Kim
--
*Kim Gybels
Does anyone know where this macro id defined? I'm having some isses building
a C++ custom action in wix 3.5..
Isn't this an environment variable?
C:\Program Files\Microsoft Visual Studio 8\VCecho %WIX%
C:\Program Files\Windows Installer XML v3\
- Kim
--
*Kim Gybels
Software Developer
When specifying the Minimum and Maximum values in an UpgradeVersion element,
can you specify all four values Major.Minor.Rev.BuildNumber or will
it only use the first 3
It will only use the first 3...
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb
:)
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32 16 74 01 02
* Metris Europe
* Interleuvenlaan 86
3001 Leuven
Belgium
www.metris.com http://www.metris.com/
This message and any attachment are privileged
an installer :)
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32 16 74 01 02
* Metris Europe
* Interleuvenlaan 86
3001 Leuven
Belgium
www.metris.com http://www.metris.com/
This message and any attachment are privileged
3.1.6.3456 will become 31.6.3456 for the MSI.
This however does imply that the minor number can not be more than 9 and
that
the largest version number ever will be 25.5 :)
Note: all version strings shown to the user do show 3.1 and not 31.
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb
In this case then does that component get actioned multiple times or just
the once for all referenced features?
Just once.
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32 16 74 01 02
* Metris Europe
* Interleuvenlaan 86
have to use them via the preprocessor:
$(env.VariableName) will be resolved to the value of %VariableName%.
Do keep in mind though that [%VariableName] will be resolved
at runtime and $(env.VariableName) at compile time.
Best regards,
Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com
.
Best regards,
Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32 16 74 01 02
* Metris Europe
* Interleuvenlaan 86
3001 Leuven
Belgium
www.metris.com http://www.metris.com/
This message and any attachment are privileged
, causing this warnings.
Can I suppress the modularization on the directory id?
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32 16 74 01 02
* Metris Europe
* Interleuvenlaan 86
3001 Leuven
Belgium
www.metris.com http
Hi,
What is the correct way to install fonts using Wix?
I always get the is a Font and must be installed to the
FontsFolder-warnings.
Best regards,
Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32 16 74 01 02
* Metris
Hey~
Yeap, that's exactly what I was trying to do; create a dialog for installdir
but just modifying the variable that gets the path
but what I was unsure of was how to create that custom variable to get the
directory. I would need custom action for this, right?
Also, if you are familiar with
Instead of using the WixToolPath variable I found that I can use the
WIX environment variable.
I set my additional linker options to:
-ext WixDifxAppExtension -ext WixUIExtension $(WIX)bin\difxapp_x86.wixlib
This works like a charm.
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb
).$(var.MinorVersion).$(var.BuildNumber)
Manufacturer=Acme UpgradeCode=----
I use a perl script to write the Version.wxi file, but other methods
might work as well.
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel
$(Registry:SOFTWARE\Microsoft\Windows Installer
xml\...@installroot)/WixToolPath
/PropertyGroup
instead of using an initial target that sets the property using
ReadRegistry.
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32
Bob Arnson wrote:
Kim Gybels wrote:
I have these additional linker options set:
-ext WixDifxAppExtension -ext WixUIExtension C:\Program Files\Windows
Installer XML v3\bin\difxapp_x86.wixlib
You can add those files to your project and avoid using any additional
linker options value
XML v3\bin\
Any ideas for getting the variable to work with the additional linker
options?
- Kim
PS: using version 3.0.4805.0
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com mailto:kim.gyb...@metris.com
Tel: +32 16 74 01 01
Fax: +32 16 74 01 02
* Metris Europe
the maximum lenght to that maximum value:
Control Type=Edit Multiline=yes Property=TEST Id=TEST X=20
Y=220 Width=100 Height=20 Text={2147483646} /
Hope this helps.
- Kim
--
View this message in context:
http://n2.nabble.com/Custom-UI-tp2434158p2434927.html
Sent from the wix-users mailing list archive
='Complete' Title='Example' Description='Description'
Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'
Because that is the property that gets sets when the user chooses a
folder to install the application in.
- Kim
--
*Kim Gybels
Software Developer
* kim.gyb...@metris.com
Is there any manual or referece about WIX3?
I'm using version 2 now because there's tutorial and manual of it but I
couldn't find any for WIX3.
If anyone knows, please tip me off
-
This SF.net email is sponsored by:
I'm developing a IE extension.
After releasing a new version, a user tries to upgrade on the website. That
means the IE browser is open and the old files are being used when the
installer tries to remove the old version.
The weird thing is that the installer makes some error but really
92 matches
Mail list logo