I'll try to explain it a bit more detailled.
I have a Windows 7 Host and windows 2012/windows 2008 guests
on guests there is a .exe file in c:\vagrant\thinkserver, i want this file
to be launch in interactive mode thanks to the shell provisioning.
The .exe file is an AutoIt script, this script will install a complete
software.
I would like to start this file as if i doubled click on it. I don't know
if this is possible.
Thanks for helping me.
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
cd C:\vagrant\thinkserver
start thinkserver_EN.exe
VAGRANT_API_VERSION = "2"
Vagrant.configure("2") do |config|
config.vm.box = "WindowsServer2k12R2"
config.vm.box_url =
"http://172.16.2.118/vagrant/Microsoft%20Windows%20Server%202012/Windows%202012%20Standard%20R2/WindowsServe2012R2.box"
config.vm.communicator = "winrm"
config.winrm.username = "Administrator"
config.winrm.password = "Whyunoprovision"
config.winrm.timeout = 1800
config.vm.guest = :windows
config.windows.set_work_network = true
config.vm.network "forwarded_port", guest: 5985, host: 5985, id: "winrm",
auto_correct: true
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp",
auto_correct: true
config.vm.network "public_network"
config.vm.synced_folder 'C:/users/user/Data', '/vagrant'
config.vm.provision "shell" do |s|
s.path = "script.bat"
s.privileged = false
end
config.vm.provider "virtualbox" do |vb|
vb.name = "WindowsServer2k12R2"
vb.gui = true
end
end