windows-installer

How to get current user %AppData% folder?

∥☆過路亽.° 提交于 2019-12-25 08:25:22
问题 WIX, MSI-installer. I build this MSI on some computer where my login name is developer . In my MSI I have such dialog window: But third variant always contains developer user name even if current user has other login name... How can I fix it? This is my code of these elements: <Control Id="rbgrPath" Type ="RadioButtonGroup" X="5" Y="80" Width="500" Height="100" Property="INSTALLFOLDER"> <RadioButtonGroup Property="INSTALLFOLDER"> <RadioButton Text="[$(var.PLATFORMPROGRAMFILESFOLDER)]Autodesk

How to update xml with properties added by the custom action

ε祈祈猫儿з 提交于 2019-12-25 08:01:08
问题 I am building a MSI which in-turn creates a windows service. I have a custom action which uses the archives embedded in the MSI, explodes it. After which it creates a couple of properties, which needs to be updated in the app.config of the msi. I am using <util:xmlFile> element of wix to update the config file. But then it doesnt contain the values updated in the properties. Custom action details : After : InstallFiles Execute : " SecondSequence " // Execute Immediate throws file not found

XML file couldn't be detected after windows service setup

依然范特西╮ 提交于 2019-12-25 07:47:57
问题 I have created a windows service. I do the setup of the service using the windows installer. I have one XML file like a config file. Whenever i debug windows service with attaching the debug project it works fine. But after the installation i can see the event saying couldn't find the example.xml file in C:\Windows\system32. It's a repeating problem. Can anyone tell me whats going on with this. Or any suggestions? 回答1: This isn't an installer problem. Windows Services are always started with

Can't find installed Office 2013 Home and business with MsiEnumProducts

浪尽此生 提交于 2019-12-25 06:01:40
问题 I use MsiEnumProducts() to find all installed MS Office products and check their versions. If I have an Office 2013 Professional Plus edition, it works correctly. I receive a full list of installed office products, like word, excel, outlook, etc, with correct product code GUIDs. https://support.microsoft.com/en-us/kb/2786054 The GUIDs look like this: Microsoft Office Professional Plus 2013 - {90150000-0011-0000-1000-0000000FF1CE} Microsoft Word MUI (English) 2013 - {90150000-001B-0409-1000

At what step of MSI (InstallExecuteSequence) UAC is prompted?

馋奶兔 提交于 2019-12-25 05:49:22
问题 When I execute my MSI with UAC ON the UAC is not prompted for some time. I am trying to read some registry entry in a custom action before "CostFinalize". My Registry read function will consider a default value if registry entry is not found. But in my case the registry entry is there but it fails to read because the key doesn't have read permission for "User". Although Admin have full permission. Registry read seems to be happening before UAC prompt. How can i make sure UAC is prompted at

WIndows Installer Putting shortcuts into a custom folder with a property

我的梦境 提交于 2019-12-25 05:36:21
问题 I am building an installer with InstallShield. It is a basic MSI project (I'd rather not have any dependencies on InstallShield that might make it more difficult to move to WiX in the future). I am attempting to put some shortcuts into a custom folder that I'd like to locate as: [INSTALLDIR]\[PROP] Environment The shortcuts all will point to [INSTALLDIR]\My.exe [PROP] , e.g. the installed executable with a command-line parameter. In InstallShield (and, it appears, MSI) I can't just set the

Wix installer registry keys not getting created in Wow64 node

江枫思渺然 提交于 2019-12-25 05:25:09
问题 I have a 64 bit machine in which I need to install a Windows service. This service was created using Apache procrun, therefore I need to create certain registry keys. These should go into the wow64 node as I expect them to, but they get created in HKLM/SOFTWARES instread of HKLM/SOFTWARE/Wow64 node. Below is my Product.wxs file. <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="DummyInstaller" Language="1033" Version="1.0.0.0"

Writing Data to MSI Database

 ̄綄美尐妖づ 提交于 2019-12-25 05:23:11
问题 I need to be able to update a binary table and i do it like so: View v = session.Database.OpenView("SELECT `Data` FROM `Binary` WHERE `Name` = '{0}'", binaryKeyName); v.Execute(); var IsReadOnly = session.Database.IsReadOnly; Record r = v.Fetch(); StreamReader reader = new StreamReader(r.GetStream("Data")); string text = reader.ReadToEnd(); text = text.Replace(@"Test12345", "TTTest"); byte[] byteArray = Encoding.ASCII.GetBytes(text); MemoryStream stream = new MemoryStream(byteArray); Once I

Install a msi at system startup time

时间秒杀一切 提交于 2019-12-25 05:16:13
问题 I have a bootable disk from a machine which is mounted on another machine. I need to make the bootable disk ready so that when i create a machine using that mounted bootable disk some of the msi's are installed. What is the best way to run the msi's at system startup without knowing the instance credentials? Note : I have tried using RunOnce and AutoAdminLogon, it works but i need to know the credentials for this method. Also, since i have only the bootable disk i need to use methods which

Install a msi at system startup time

流过昼夜 提交于 2019-12-25 05:16:02
问题 I have a bootable disk from a machine which is mounted on another machine. I need to make the bootable disk ready so that when i create a machine using that mounted bootable disk some of the msi's are installed. What is the best way to run the msi's at system startup without knowing the instance credentials? Note : I have tried using RunOnce and AutoAdminLogon, it works but i need to know the credentials for this method. Also, since i have only the bootable disk i need to use methods which