I am using wix/dotnetinstaller to install a windows service. The service will need to run under a non system account that is set up by the user. Is it possible to build installation package with credential included ? Whole idea is to preparing package when user ( after login to his web panel ) click download button. Generated package should have credential included and after installation there won't be necessary to put it again.
Building installation package with service credentials in it
1.3k Views Asked by smolam At
2
There are 2 best solutions below
0
PhilDW
On
I'm pretty sure you can't do that because to start a service with the user's credentials you'll need the user's password, and you can't get hold of it. Why does this process you're running need to be a service? You could create it as an ordinary process and have it in the Startup menu of the user, then it will start when the user logs on.
Related Questions in WIX
- Word Addin not working in 64bit office but working on 32bit office
- How to define WIX agent requirement in TeamCity?
- WiX and custom extensions for primary output?
- executing an vb script from another project bud in the same solution in C#
- WiX – copy arbitrary files
- Is Component/@Guid attribute is a MUST in case of producing MergeModule
- WiX installer - change the install path
- Single Package Authoring
- Delay in custom action
- WiX - How to use a config file to decide which MSI to run?
- How to change Install button display text conditionally
- Service dependencies are causing my wix msi to force a reboot on uninstall
- WiX installer xml add folder
- wix and heat configure installation folder
- Cant find File System, Registry icon in WIX setup project in Visual Studio
Related Questions in CREDENTIALS
- Ask for creds only if some specified
- What are all the methods to delete local-storage data?
- Outgoing WSS authorization from WebRequest C#
- Crystal report shows database login when taking Dataset as datasource
- How to get AWS command line interface to work in cygwin
- Solving CORS when posting in angularJs using $HTTP with credentials
- Powershell Invoke-Command with PSCredential Cannot process argument transformation on parameter 'Credential'
- powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment
- Create a windows vault credential and link it to outlook - Powershell
- Proxy credentials while opening any Office application
- Connect to MongoDB in C# with Credentials
- dynamodb credential works when used directly but fails when going thru kinesis
- GoogleAuthException: UNREGISTERED_ON_API_CONSOLE when trying to append to Google Sheets API V4
- Local User Credential Check in windows 2012 server
- Symfony 3 - custom user provider - login always showing "bad credentials" instead of "username not found"
Related Questions in AZURE-DEVOPS
- Pushing to git repository hosted by Visual studio online without entering user name and password
- Generate folder structure of a changeset after checkin in VSO
- OpsHub Visual Studio Online Migration Utility Hangs on Creating Configuration
- Could not write destination file: Access to path 'd:\a\src\...\Web.config' is denied
- hosted build visual studio online
- VSTS Rest API Get WorkItems By Field Value
- xunit.runner.dnx on visual studio online no tests found
- OpsHub User Mapping Error
- Kick off mocha tests in Visual Studio Team Services Build
- Visual Studio Online - Build - There are agents that are capable of running the build, but they are not online
- on-premise TFS to VSO issues using OpsHub 1.2.0.000
- Git tag at the end of build on Visual Studio Online (Build vNext, hosted pool)
- Get Latest Version using command-line from VSO?
- Visual Studio Team Services workspace error
- How to cache credentials for VS online in posh-git?
Related Questions in DOTNETINSTALLER
- Check if Windows Installer 3.1 or higher is installed?
- dotnetInstaller should terminate on failure of registry check
- dotnetinstaller configuration to continue with MSI installation even if prerequisites fail
- How to bundle 6 msi into one msi installer
- Searching for Platform independent installer
- Run unelevated custom action from a WiX elevated installer
- Building installation package with service credentials in it
- WIX get runtime variable from msi to transform another
- Bootstrapper handling Multi-Instances msi
- Is it possible use dotNetInstaller without .net framework 3.5 installed on computer?
- dotNetInstaller and .NET 4.0
- dotNetInstaller with output MSI file
- Error while making setup using dotnetInstaller (installer.exe)
- Using dotNetInstaller to check whether SQL Server 2008 is installed
- Dot Net Installer: How to stop the "Skip" button from showing up?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As you no doubt know it is not advisable to run a service with user credentials for security reasons and maintainability alike. However, if you use Windows Installer you can input the service credentials during installation or set them on the command line like this:
You then author the ServiceInstall and ServiceControl tables in the MSI file to install and configure the service using the properties USERNAME and PASSWORD for StartName and Password columns respectively.
I would recommend using WIX for this - which is a free tool capable of compiling MSI binaries from XML source files. For a crash course in WIX I recommend these two sources:
If you are a "tinkerer" these two sources - particularly the first one - will help you get going pretty fast using WIX.
You can also use more higher level tools with better GUI and some "automagic" such as Installshield and Advanced Installer.