Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
> Make the appropriate changes in the registry, and then export the appropriate subkey or subkeys. Exported registry subkeys are automatically saved as .reg files.
Example :
> Add the exported .reg file (ChangeVersion.reg in this example) to your application and set “Copy to output Directory = Copy always”.
> Create a batch file (ChangeRegistrySetting.cmd in this example) and add to your application.
Right click on the file -> Properties -> set “Copy to output Directory = Copy always”.
ChangeRegistrySetting.cmd
=======================
@echo off
regedit.exe /s ChangeVersion.reg
exit /b 0
> Specify the .cmd file to be executed as a startup task on Azure VM.
Make the necessary changes in ServiceDefinition.csdef file.
> Deploy the application package, RDP to the VM and test.
Please sign in to use this experience.
Sign in