setup-deployment


Free deployment for Visual Basic 2010 Express application that requires admin rights


I'm using VB.Net and Visual Basic Express 2010. I'm looking to create a single .exe install file to distribute my application. But in order for my application to work, I need to mark my app. as requiring admin rights.
Click Once is not really an option because it A) Doesn't support code that requires admin rights, and B) Doesn't compile into a single .exe
So my question is...
How do I create a single executable installer package for free that requires that the program run as an admin.
The reason I need admin rights is because my application writes to C:\Windows\System32
If your installation process is simple, you can try using the free version of Advanced Installer (create a "Simple" project). It will generate an MSI package which installs your application resources.
To make your application request elevation, you can add an application manifest to its main exe. In it you can set requestedExecutionLevel to requireAdministrator.
You could run the program using a bat file converted to a exe and you could package your exe in that exe too using www.BatToExeConverter.com or http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html
Put this code on top of your bat file to get admin rights.
mkdir "%windir%\BatchGotAdmin"
if '%errorlevel%' == '0' (
rmdir "%windir%\BatchGotAdmin" & goto gotAdmin
) else ( goto UACPrompt )
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute %0, "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"

Related Links

Getting attribute error when using Mage to deploy a project
Visual Basic Deployment
Capistrano 3 upload hangs
Issue in setup and deployment project
Run another another setup during instllation
Self-extracting EXE where command-line parameters are not compressed
Free deployment for Visual Basic 2010 Express application that requires admin rights
Which free deployment/installer software is better?
Why use “DLLSelfRegister” in VB deployment package?
Do a Windows application ifself contain the .NET framework?

Categories

HOME
jdo
webpack
reflection
tizen
analysis
leon
c#-2.0
django-imagekit
mouse
bs4
medical
slurm
python-unittest
floating-action-button
mapserver
correlation
alignment
workload-scheduler
opentracing
introduction
clickonce
intentfilter
mmap
wijmo
smb
microsoft-sync-framework
user-interaction
greendao
linkerd
libuv
stormpath
contact-form
http-get
hybridauth
xmlreader
mapbox-gl
html5-fullscreen
mixture-model
event-driven
ibpy
nand2tetris
keydown
gpx
cubic-spline
azure-application-gateway
youcompleteme
network-flow
jquery-nestable
clean-architecture
mplayer
knockout-components
libusb-win32
boost-preprocessor
capacity
dynamics-sl
webdriverjs
cubes
jquery-filter
elements
multi-level
fody
bgp
independentsoft
system.management
maven-tomcat-plugin
prerequisites
lemon
thredds
security-testing
coveralls
kcachegrind
sonarqube5.1.2
bridge.net
truevault
rake-task
gwidgets
internet-connection
starcluster
concurrent-collections
centos5
industrial
dir
web2py-modules
html-editor
jspinclude
uiviewanimation-curve
buildr
removeclass
heartbeat
hamachi
rfc1123
getresponsestream
mirah
nerddinner

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App