TMaYaD Posted November 4, 2004 Share Posted November 4, 2004 This might be pretty trivial but I'm posting this for those who doesn't have a clue about what to do.This is how I created an unattended install when the NSIS failed to silent install.(It throws up the prompt if I want to install?yes|no)I downloaded vim63rt.zip and gvim63.zip(or you can get vim63ole.zip if you prefer to) from Vim downloads.then I extracted them to my testgrounds(G:, The drive I use 4 experimenting).Now download and place the attached uninstaller and place it in (testgrounds)\vim\vim63 folder. this created a folder structure like follows(testgrounds) | -Vim | -vim63 | -install.exe -uninstall-gui.exe -(Other files)Then I created a file [vinst.cmd] in 'Vim' directory@echo offcd vim63echo. | install.exe -create-batfiles gvim evim gview gvimdiff -create-vimrc -install-popup -install-openwith -add-start-menu -create-directories vim -register-OLEcd ..echo colorscheme evening>>_vimrcdel vinst.cmdnotice the echo colorscheme evening>>_vimrc line, this is to customise the vim. To add more settings, add more lines similar to it. see the vim manual on _vimrc file and replace the colorscheme evening part with anything you want.now select the contents of the vim directory, i.e, vim63 folder and vinst.cmd file (not the vim directory) and rar them(get winrar from www.rarlab.com). now click on the sfx button and then 'Advanced SFX options'.Enter "Vim" as path to extract and select "create in program files" radio button.enter vinst.cmd in "Run after extraction" text box.Then go to Modes (third) tab nad select Hide all for silent mode and overwrite all files for overwrite mode.click ok and again ok.you will get an exe file in the same directory as your rar file. Double click it to silent install or copy it to $OEM$\$1\Install\VIM and add the following to your RunOnceEx.cmdREG ADD %KEY%\020 /VE /D "gVIM 6.3" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\VIM\vim.exe" /fsee aarons Unattended guide for more details on later method.uninstall_gui.exe Link to comment Share on other sites More sharing options...
artbio Posted November 8, 2004 Share Posted November 8, 2004 Your method does not create the uninstall entrys for windows, does it?The NSIS method does! But it fails unattended!I was triying to install gvim too.However, thanks for your help. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted November 8, 2004 Share Posted November 8, 2004 For everybody else wondering, it's a text editor. Link to comment Share on other sites More sharing options...
artbio Posted November 8, 2004 Share Posted November 8, 2004 For everybody else wondering, it's a text editor.What do you mean by that?Some day i will try to install gvim with the NSIS. If the NSIS script gets to my hands i will make unattended gvim install possible. Link to comment Share on other sites More sharing options...
TMaYaD Posted November 8, 2004 Author Share Posted November 8, 2004 artbio: Hi, Right now I'm on linux. I'll check out later today about the uninstall entries and let you know about them.crahak and rest, gVIM is more than a simple text editor and the only competent I've seen so far is xEmacs. You have to use them to feel 'em, there is no other way. (I'm an ordant fan amn't I?) Link to comment Share on other sites More sharing options...
artbio Posted November 8, 2004 Share Posted November 8, 2004 artbio: Hi, Right now I'm on linux. I'll check out later today about the uninstall entries and let you know about them.crahak and rest, gVIM is more than a simple text editor and the only competent I've seen so far is xEmacs. You have to use them to feel 'em, there is no other way. (I'm an ordant fan amn't I?)I love Gvim too!Well, we could mail the author. Maybe he would want to help us, by changing the NSIS script, making unattended possible! Link to comment Share on other sites More sharing options...
TMaYaD Posted November 8, 2004 Author Share Posted November 8, 2004 the uninstall issue is fixed now.As you might notice, The method I mentioned does create uninstall enties but they do not work. It is fixed now though uninstall are not unattended . Link to comment Share on other sites More sharing options...
artbio Posted November 8, 2004 Share Posted November 8, 2004 Thank you.I will be able to test that only during the next weekend!If you copy that uninstall executable to the gvim install folder, uninstall will work? Link to comment Share on other sites More sharing options...
artbio Posted November 13, 2004 Share Posted November 13, 2004 Finally i was able to create an AutoIt v3 Script for Gvim 6.3!It installs GVim 6.3 full installation.Download AutoIt version 3 at this link:http://www.autoitscript.com/autoit3/downloads.phpDownolad the file attached to this post and place it at the same directory as gvim install file.Install AutoIt from the above link.Compile the script.Here is the code::; AutoIt Version: 3.0; Language: English; Platform: WinXP; Author: engine;; Script Function:; Install gVim 6.3;$g_szVersion = "gVim AutoIt v3 Script 1.0"If WinExists($g_szVersion) Then Exit; It's already runningAutoItWinSetTitle($g_szVersion); Run the installerRun("gvim63.exe"); OptionsAutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 3)WinWaitActive("Vim 6.3 Setup")Send("{ENTER}")WinWaitActive("Vim 6.3 Setup: License Agreement")Send("{ENTER}")WinWaitActive("Vim 6.3 Setup: Installation Options")Send("{DOWN 2}" & "{TAB 3}" & "{ENTER}")WinWaitActive("Vim 6.3 Setup: Installation Folder")Send("{ENTER}")WinSetState("Vim 6.3 Setup: Installing", "", @SW_HIDE)ProcessWait("install.exe")Sleep(500)Send("{ENTER}")WinWaitActive("Vim 6.3 Setup: Completed")Send("{ENTER}")WinWaitActive("Vim 6.3 Setup")Send("{RIGHT}" & "{ENTER}"); Finished!As you can see, the install file must be named gvim63.exe.Hope this can help!gvim.au3 Link to comment Share on other sites More sharing options...
artbio Posted November 14, 2004 Share Posted November 14, 2004 Updated script.Now, as silent as i could get it!If anyone knows a way of make it completely silent, let me know please.Thanks!;; AutoIt Version: 3.0; Language: English; Platform: WinXP; Author: engine;; Script Function:; Install gVim 6.3;$g_szVersion = "gVim AutoIt v3 Script 2.0"If WinExists($g_szVersion) Then Exit; It's already runningAutoItWinSetTitle($g_szVersion); Run the installerRun("gvim63.exe"); OptionsAutoItSetOption("TrayIconHide", 1)AutoItSetOption("WinTitleMatchMode", 3)AutoItSetOption("WinWaitDelay", 100)WinWait("Vim 6.3 Setup")WinSetState("Vim 6.3 Setup", "", @SW_HIDE)ControlClick("Vim 6.3 Setup", "", "Button1")WinWait("Vim 6.3 Setup: License Agreement")WinSetState("Vim 6.3 Setup: License Agreement", "", @SW_HIDE)ControlClick("Vim 6.3 Setup: License Agreement", "", "Button2")WinWait("Vim 6.3 Setup: Installation Options")WinSetState("Vim 6.3 Setup: Installation Options", "", @SW_MINIMIZE)ControlCommand( "Vim 6.3 Setup: Installation Options", "", "ComboBox1", "SelectString", "Full")WinWait("Vim 6.3 Setup: Installation Options", "Full")WinSetState("Vim 6.3 Setup: Installation Options", "Full", @SW_HIDE)ControlClick("Vim 6.3 Setup: Installation Options", "", "Button2")WinWait("Vim 6.3 Setup: Installation Folder")WinSetState("Vim 6.3 Setup: Installation Folder", "", @SW_HIDE)ControlClick("Vim 6.3 Setup: Installation Folder", "", "Button2")WinSetState("Vim 6.3 Setup: Installing", "", @SW_HIDE)ProcessWait("install.exe")While ProcessExists("install.exe")Sleep(50)Send("{ENTER}")WEndProcessClose("install.exe")WinWait("Vim 6.3 Setup: Completed")WinSetState("Vim 6.3 Setup: Completed", "", @SW_HIDE)ControlClick("Vim 6.3 Setup: Completed", "", "Button2")WinWait("Vim 6.3 Setup")WinSetState("Vim 6.3 Setup", "", @SW_HIDE)ControlClick("Vim 6.3 Setup", "", "Button2")ExitIf anyone wonders, engine is a login i use in most online forums.By the way, how can i change my login name in this forum from artbio to engine?gvim.au3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now