MSFN Forum: gvim6.3 for windows unattended - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

gvim6.3 for windows unattended Rate Topic: -----

#1 User is offline   TMaYaD 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 04-February 04

Posted 04 November 2004 - 11:41 AM

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 off
cd vim63
echo. | install.exe -create-batfiles gvim evim gview gvimdiff -create-vimrc -install-popup -install-openwith -add-start-menu -create-directories vim -register-OLE
cd ..

echo colorscheme evening>>_vimrc

del vinst.cmd


notice 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.cmd

REG ADD %KEY%\020 /VE /D "gVIM 6.3" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\VIM\vim.exe" /f


see aarons Unattended guide for more details on later method.

Attached File(s)




#2 User is offline   artbio 

  • Junior
  • Pip
  • Group: Members
  • Posts: 67
  • Joined: 11-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 07 November 2004 - 07:31 PM

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.

#3 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,260
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 November 2004 - 07:51 PM

For everybody else wondering, it's a text editor.

#4 User is offline   artbio 

  • Junior
  • Pip
  • Group: Members
  • Posts: 67
  • Joined: 11-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 07 November 2004 - 08:52 PM

crahak, on Nov 8 2004, 02:51 AM, said:

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.

#5 User is offline   TMaYaD 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 04-February 04

Posted 07 November 2004 - 08:53 PM

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?)

#6 User is offline   artbio 

  • Junior
  • Pip
  • Group: Members
  • Posts: 67
  • Joined: 11-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 07 November 2004 - 08:55 PM

TMaYaD, on Nov 8 2004, 03:53 AM, said:

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!

#7 User is offline   TMaYaD 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 04-February 04

Posted 07 November 2004 - 10:25 PM

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 ;).

#8 User is offline   artbio 

  • Junior
  • Pip
  • Group: Members
  • Posts: 67
  • Joined: 11-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 08 November 2004 - 02:26 PM

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?

#9 User is offline   artbio 

  • Junior
  • Pip
  • Group: Members
  • Posts: 67
  • Joined: 11-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 13 November 2004 - 05:28 PM

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.autoitscr...3/downloads.php

Downolad 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 running
AutoItWinSetTitle($g_szVersion)

; Run the installer
Run("gvim63.exe")

; Options
AutoItSetOption("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!

Attached File(s)

  • Attached File  gvim.au3 (972bytes)
    Number of downloads: 1


#10 User is offline   artbio 

  • Junior
  • Pip
  • Group: Members
  • Posts: 67
  • Joined: 11-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 November 2004 - 12:31 PM

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 running
AutoItWinSetTitle($g_szVersion)

; Run the installer
Run("gvim63.exe")

; Options
AutoItSetOption("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}")
WEnd

ProcessClose("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")

Exit


If 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?

Attached File(s)

  • Attached File  gvim.au3 (1.77K)
    Number of downloads: 3


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy