• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2229
  • Last Modified:

PowerShell installation and pop-up dialog box capability

I'm interested in starting to use PowerShell to install my database on users PC.  I've got a few questions:
1) Can PowerShell display a dialog box?  If so how would I do the following:
       a) Display dialog asking user "Do you want to install the database", with Yes/No buttons
       b) Code to process Yes or No response

2) Can my users run my PowerShell script by clicking on a shortcut?  If so, what do I need for shortcut properties (e.g., c:\winnt\powershell  j:\commonstorage\myscript.scr).

3) Can all my users run PowerShell without installation of any additional software?  They all have Windows XT SP2.

0
schmir1
Asked:
schmir1
  • 2
  • 2
1 Solution
 
Chris DentPowerShell DeveloperCommented:

2. Yes... but only if it's a batch file that calls a PowerShell file. And only then if you've set the local execution policy to allow scripts to run (default setting does not).

3. No.

SP3 includes PowerShell, before that you would have to install PowerShell on each client.

You'd be better creating an MSI for this wouldn't you? Then Publish (rather than assign it) using Group Policy?

Chris
0
 
schmir1Author Commented:
My installations needs are simple and I wouldn't want to invest the time in something complicated.  I went down that road once and now that installer is obsolete.  I also have other scripting needs so I thought this would be a good time to get into a new script language.  Maybe I'll just use VBscript for now (unless I find it has the same issues as PowerShell).
0
 
Chris DentPowerShell DeveloperCommented:

VbScript should be good, even if it's a bit short on the interactive side unless you're digging into HTA. At least it's available by default :)

Chris
0
 
schmir1Author Commented:
thanks, I'm now using VBScript and it's coming along
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now