How to detect Media Services are installed on Windows server 2003? - wix

I've been trying to find some information on this. So far I've been using the version Key presence to do it, is there a better way ?

What's installed on a box is noted in several places, none of which reports everything, so you'll have to look at each to find where Media services install info is.
WMI classes:
Win32_ApplicationService
Win32_QuickFixEngineering
Win32_SoftwareFeature
Also MsPIDinfo:
http://www.mombu.com/microsoft/scripting-jscript/t-microsoft-programs-ids-277777.html
And, interestingly, uninstall info in the Registry at subkeys below:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Related

Wix : "error 1316: the specified account already exists" on one server

On my test machine, the setup installs/uninstalls without any problem.
Also, I already have installed about 50 customers with this installer.
It seems to be only my installer that has the problem (tried to install example msi, which worked)
I tried the Microsoft Fixit tool for fixing corruption issues.
I tried MsiZap from the windows development toolkit
I tried searching the registry manually for leftover keys ...
Nothing worked.
Does anyone know exactly what this error means, and I mean by that, what does it check (registry key? ...) to respond with this error?
One possibility is that somewhere in your WiX you have something like a WiX util CreateUser and it's trying to create a use that already exists. If so, then using UpdateIfExists might be appropriate, or setting FailIfExists to no, or just manually deleting that user from the system.
If it's more complicated than that, this may help (your question appears to be a duplicate of this):
Windows msi: error 1316: the specified account already exists
and this appears to fix some Windows issues in this area:
https://support.microsoft.com/en-us/mats/program_install_and_uninstall/en

How to install firebird server using a wix installer

I am required to install firebird super server on windows as a service, as a part of my application installation through wix for windows machines.
The machines might have a another firebird instance, usually default instance running, thus must be installed on a different port. User should not see any dialogues and installation should happen in the background.
I am able to do the installation through instsvc, installing firebird on a different port with a new instance name. However on windows you get the file execution security warning for instsvc execution. Thus I was looking in to http://www.mwasoftware.co.uk/firebird-msm merge modules but, it does not provide me with information on how to install on a different port/service name(if required).
Could you please provide me info on how to install firebird using wix, so that it would install firebird as apart of my wix installation, on a specified port, without obstructing existing installations, and no interaction from the user.
The Firebird installer only installs the service as the default instance with the default port. If you want to run on a different port and use a different servicename, then you need to change the port in firebird.conf yourself, and execute instsvc with an alternative servicename.
What I got from the merge module dev. While I havent tried the solution yet, seems to be straight forward.
The build scripts including WIX scripts are all available for
download. The direct link is:
http://www.mwasoftware.co.uk/download-msm/download/8-current-version/130-msm-build
To install a (possible) second server, you should do two things:
Build use a modified firebird.conf
Change all the UUIDs so that the package is unique.
You will also need to copy the build251.bat script and update the
environment variables to the Firebird version you are using. See also
readme.htm.

How can I view/edit my registry settings on a Windows CE 6 device?

In his second comment here, PaulH suggests changing registry settings, providing this link.
I'm not sure editing the registry is really something I want to do, because copying files to the handheld was working fine until late yesterday, and I doubt any change was made to the registry to cause that problem to commence, so I'm not at all sure that changing the registry will fix the problem.
At any rate, I wanted to compare the values I have in the registry with what is shown on that msdn page linked above. The "USB Function RNDIS Client Driver Registry Settings" section of the page references several values stored in the Registry below HKEY_LOCAL_MACHINE\Drivers
However, when I Start > Run > "regedit" on my Windows CE handheld device, it doesn't know what RegEdit is.
I even looked on my PC for such a branch, but I have no "Drivers" folder beneath HKEY_LOCAL_MACHINE; all I've got are:
BCD000000000
HARDWARE
SAM
SECURITY
SOFTWARE
SYSTEM
So how can I examine my registry settings on the handheld device? I thought maybe my software was too old (pre-dated the registry) but the page referenced above is for Windows CE 5.0, so that's obviously not the case.
UPDATE
I downloaded the "remote registry editor" which PaulH recommends below. However, here he recommended changing the registry setting from RNDIS to Serial_Class yet it is already set to Serial_Class:
Does this mean I should try to change it to RNDIS and see what happens, or am I doomed?
Windows CE doesn't come with a registry editor (as you discovered). You can download one, use the Registry API, or (if you can get activesync working) use a remote registry editor.
The registry layout on the WinCE device only vaguely resembles the on on your PC. Don't look for any real consistency there.
If debugging on visual studio then running Registry API in the watch window is an option.
It's crude but you don't have to download spookware from the internet

Best way how to check if app is installed in wix

I'm curious what is the best way to detect installed software in computer during wix installation. I know that it's possible to do in a lot of ways. like appsearch, registrysearch, directorysearch and filesearch.
I also know that in windows installer there is MsiGetProductInfo function and ComponentSearch in wix, which look for information based on guid.. and also one other possibility is searching in the registry HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall but there are more possibilities. HKCU, HKLM and 64 or 32bit?
For me the best option looks something like MsiGetProductInfo, where I can put the guid of the app I'm looking for and then I get info like installation dir, version..
I read a couple of articles and lots of people are doing this through registry search. and dir search. but what if a patch changes the structure of app dirs? Or changes the registry keys. The guid should be still unique through these changes.
Also my boss told me that he is against searching the registry. So what do you think about this? What is the best option to do it.
Edit: Additional question. it looks to me that not of all installation system using guid.

creating an OpenCascade Module for SALOME in the Windows Development Environment

I read a tutorial on how to do that in LINUX, but it looks like this cant be ported to windows so easily. SALOME gives us a development environment for windows and claims its crossplattform:
http://www.salome-platform.org/downloads/current-version
But the documentation does not specify the module creation process in windows (the documentation is only downloadable so i cant link it). To follow the LINUX tutorial, one has to find and edit several files that are missing in the windows distribution. Mainly these are files that are used in the make process of the linux salome module creation.
I hope anyone has some experience in this field.
SALOME doesn't support Windows currently, as the 3rd parties dependencies.
http://www.salome-platform.org/forum/forum_9/975821878