MSFN Forum: Install with switches from HTML - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Install with switches from HTML Rate Topic: -----

#1 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 03:15 PM

Maybe I am not in the right section of the forum but here is my question:

I'd like to launch my Unattended Installation of Office 2003 from a HTML page.

if I try the following it won't work
<a href="SETUP.EXE TRANSFORM=Unattended.MST /qb-">Office 2003</a>


So how should I do it?


#2 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 03:29 PM

is the HTML and setup.exe in the same folder?
It may not be working, since the working folder of your HTML might be different.

And since you've anyway started on this path, let me tell you of some more nice possibilities:
1. Rename the .html to .hta - that makes it a HTML application that runs without a browser-like toolbar, etc. (useful to have a "pro" looking autorun).
2. Setup an autorun.inf in the root of the CD, which will run this HTA file.

#3 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 03:35 PM

Yes it is in the same folder. If I do this simple test it works properly:
<a href="SETUP.EXE">Office 2003</a>


for the clean look, I am using Discstarter 2.0 wich allow me to launch my HTML file and control a lot of parameter. :P

#4 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 25 November 2004 - 03:39 PM

have you tried it with something like <a href="file:///drive letter:/Path/setup.exe...........">Descriptive title</a>

#5 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 03:45 PM

I've tried:
<a href="file:///SETUP.EXE TRANSFORM=Unattended.MST /qb-">Office 2003</a>


It doesn't work :blink:

P.S. I don't want to use an absolute path

#6 User is offline   BritishBulldog 

  • Member
  • PipPip
  • Group: Members
  • Posts: 271
  • Joined: 11-October 04

Posted 25 November 2004 - 03:45 PM

I am not sure but maybe you should try this as HTML does noe like spaces.

<a href="SETUP.EXE%20TRANSFORM=Unattended.MST%20/qb-">Office 2003</a>


#7 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 03:49 PM

@BritishBulldog

Nice guess but it doesn't work :(

#8 User is offline   BritishBulldog 

  • Member
  • PipPip
  • Group: Members
  • Posts: 271
  • Joined: 11-October 04

Posted 25 November 2004 - 03:58 PM

have you tried this, as this is what dreamweaver give me if the html and the exe are in the same directory
<a href="/SETUP.EXE%20TRANSFORM=Unattended.MST%20/qb-">Office 2003</a>


#9 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 04:03 PM

nope... still doesn't want to cooperate!

I think it would require double quote or something like that (from my RunOnceEx experience) but I am not too familiar with those.

#10 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 25 November 2004 - 04:05 PM

<a href=%22%2F%53%45%54%55%50%2E%45%58%45%20%54%52%41%4E%53%46%4F%52%4D%3D%55%6E%61%74%74%65%6E%64%65%64%2E%4D%53%54%20%2F%71%62%2D%22>Office 2003</a>


#11 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 04:09 PM

@Yzöwl
Sorry! no luck with this one either :o

#12 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 25 November 2004 - 04:53 PM

What about just creating a shortcut with the parameters /switches, put that on the cd along with your html and launch it instead of the exe?

#13 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 04:58 PM

I will try it if I have no other option.

Using your technique or a batch file would simply make it harder to maintain because it would require an external file for every HTML links.
I am planning to put a link for every programs and drivers installers on my Unattended Windows CD.

I will also check if there is a possibility with JavaScript embedded in HTML

#14 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 09:28 PM

Ok, I think it works properly with javascript...

<html>
<body>
<script language="javascript" type="text/javascript">

var a = "SETUP.EXE TRANSFORM=Unattended.MST /qb-";
var b = "SP1-Client.exe /Q:A /R:N";

document.write("<a href=" + a + ">Office Pro 2003</a><br />");
document.write("<a href=" + b + ">Service Pack 1</a>");

</script>
</body>
</html>


BUT I would prefer plain HTML... :rolleyes:

#15 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 25 November 2004 - 09:52 PM

try WPI...

http://members.aon.at/equinox/wpi/

#16 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 November 2004 - 10:04 PM

WPI is a replacement for RunOnceEx or batch files wich allow to select the software you want to install at the end of your unattended installation.

What I want to acheive is different. I want to use my Unattended CD to perform additional task when inserted into any kind of computer.
With autorun.inf, my HTML interface is launched and then the technician can read documentation, install software with just a click, install drivers, etc.

#17 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 November 2004 - 11:22 AM

Ah Crap! My JavaScript doesn't work afterall; it launch a regular installation and doesn't take my switches into account. :angry:

I guess I'll have to point to a batch file...

#18 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 November 2004 - 12:03 PM

If you need content on the page and links to start apps from there - and need it to be easily modifiable (and look good visually too), then what you need is:
Autoplay Media Studio - easy to build an autorun within minutes.

#19 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 November 2004 - 12:39 PM

@prathapml

it is quite expensive! Beside I already have a licence for DiscStarter 2.0 wich is able to launch exe in HTML page without the usual Windows Warning...

#20 User is offline   minigun 

  • Member
  • PipPip
  • Group: Members
  • Posts: 141
  • Joined: 19-July 04

Posted 27 November 2004 - 11:17 AM

prathapml, on Nov 25 2004, 03:29 PM, said:

1.  Rename the .html to .hta - that makes it a HTML application that runs without a browser-like toolbar, etc.  (useful to have a "pro" looking autorun).
2.  Setup an autorun.inf in the root of the CD, which will run this HTA file.

how do i get the .hta file to run?? i get the error "not a valid win32 application" (when its on the CD works fine otherwise) what have i missed out??

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • 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