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
- Wix bundle of third party exe and new msi cant figure out detect conditions
- Getting 'Error writing to file' during WiX Toolset upgrade when changing installation scope
- Unable to format string in desired format - WiX
- wix toolset radio button condition
- How to Add custom dialog to Wix v4
- How to invoke UAC(Elevation shield) Prompt while trying to open bootstrapper bundle exe in WIX
- How do I use heat.exe with Visual Studio extension?
- Is anybody using WiX Toolset v5.0.0-rc.1?
- WixToolset v4 - Installation with scope "PerUser" fails when package NetFx462Redist is used
- Wix not writing to HKCU when run with a user needing admin login?
- WIX project Radio button value usage
- WinAPI / WIX - How to detect if the MSI installer is running on ARM64 or x86?
- Detect re-installation on rollback
- Update to Wix 3.14 from 3.11 get error MSB4181: The "MSBuild" task returned false but did not log an error
- Wix: Error LGHT0091: Duplicate symbol 'Property:WIX_IS_NETFRAMEWORK_472_OR_LATER_INSTALLED' found
Related Questions in CREDENTIALS
- what really controls the permissions: UID or eUID?
- Error on Google Sign In CredentialManager, using Jetpack Compose
- Windows Custom Credential Provider is not displaying tile on logon for all users in a pc
- How do I list which Jenkins credentials used per pipeline in the script console?
- How to correctly implement passkeys for web?
- Chrome flag #filling-across-affiliated-websites vs #filling-across-grouped-sites
- mail jakarta send whit proxy
- multiple azure chatbots doesn't authenticate
- Access AWS Secrets Manager with IMDSv2 set to required
- I'm using NextJs with Auth.Js version 5, How can I retrive the access_token upon sign in so as to make further API calls
- I want to convert the encrypted user login creds to tamil language and store in mysqll db
- Install a private package with credentials from requirements.txt
- Access a UNC path with .NET Core Web API
- Error retrieving files from sharepoint via python
- PayPal bearer resets after x amount of seconds
Related Questions in AZURE-DEVOPS
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Error: VS800075 when downloading artifact from another project
- Azure Scale Sets and Parallel Jobs
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- Referencing yml file from submodule in main pipeline
- Where to find a User Story draft?
- Self Hosted Agent service startup getting failed on VM restart
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- Dacpac deployment to Azure via SSMS failed: Cannot alter the role db_owner
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- Share variables across stages in azure pipelines with templates
- Can I move an Azure Data Factory Pipeline to Azure DevOps?
- How to migrate a single workitem in Devops
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
Related Questions in DOTNETINSTALLER
- dotnetinstaller configuration to continue with MSI installation even if prerequisites fail
- Searching for Platform independent installer
- Is it possible use dotNetInstaller without .net framework 3.5 installed on computer?
- Run custom uninstaller for a DotNetInstaller generated EXE
- Bootstrapper handling Multi-Instances msi
- WIX get runtime variable from msi to transform another
- Building installation package with service credentials in it
- dotnetinstall UI - dropping the mainPage dialog
- DotNetInstaller won't resume where it left off after reboot
- Run unelevated custom action from a WiX elevated installer
- How to bundle 6 msi into one msi installer
- dotNetInstaller and .NET 4.0
- Error while making setup using dotnetInstaller (installer.exe)
- dotNetInstaller with output MSI file
- Do dotNetInstaller exes install as a package or separate products?
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 # Hahtags
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.