Looking for best way to test for a program

I like test path better. My problem is through all the different versions of office they cant all install to the same directory. Research time.

I'm writing a script that will automatically install Outlook 2010 if Office 2013, 2010, 2007, or 2003 are not installed. It's part of a script I already have each tech has to run locally due to management decisions(that I have no control over). Right now I prompt the tech if they want to install it. Then test for the installer and install it.
PowershellDo{$outlook = read-host "Would you like to install Outlook 2010? y/n" IF ($outlook -eq "y") { If (Test-Path -Path C:\Update\outlook2010) { saps -filepath C:\update\outlook2010\setup.exe -wait } Else { Write-host "Outlook is not in the update folder!" -ForegroundColor Red } }ElseIF ($outlook -eq "n") { Write-Host "Please make sure there is an email client." -ForegroundColor Yellow }}While ('y','n' -notcontains $outlook)What I would like to do is remove the prompt as it's a volume license...
This topic first appeared in the Spiceworks Community

Similar Messages

  • What is the best way to test for collisions between objects?

    I am in the process of developing my first game, my first decent game that is. I understand how to develop the background and tileset for the game, but have yet to figure out an effective way of testing for collisions. As in you try to move the character into a wall, or another object on the level.
    If I divide the level into tiles, it won't be to hard, but I am thinking I want to have the hero be able to move all over the place, not just from square to square.
    Any suggestions or ideas will be greatly appreciated

    If I divide the level into tiles, it won't be to hard,
    but I am thinking I want to have the hero be able to
    move all over the place, not just from square to
    square.Err...
    So if the hero is not on a square, the hero is not on a tile and consequently is not on a visible aspect of the game world?
    I suspect that you wanted the hero to be able to move in any direction, not just the standard cardinal directions.
    If you're using tiles to represent the game world, then the solution is simple - check to see if there's anything "solid" already on the target tile. If there is, abort the move and report it as a collision. If there isn't, permit the move.
    It's only when you have a tile-less world that you actually have to determine if the leading edge of your hero crosses the boundary of an item (or border) that he shouldn't be allowed to cross. Doing so is complicated enough that I would simply suggest that you search the forum for third party collision detection packages that you can borrow.

  • [solved] Best way to test for record in sqlite3 db?

    In a bash script, I need to know if a sqlite3 'SELECT ... WHERE' operation finds any matches.  I don't need the output; I just need to know if a match is found.  My thought was to do
    if [[ "$(sqlite3 ... "SELECT ..." )" ]];then ...
    Is there a better way to do it?
    Bonus question: if searching a primary key or unique column, is a ' SELECT ... WHERE foo="bar" ' operation smart enough to stop when it finds a match, or will it continue through the rest of the table?
    Thanks.
    Last edited by alphaniner (2012-04-26 14:51:36)

    @alphaniner: Primary key columns are usually indexed, hence a query for a primary key column will not traverse the table, but perform an index lookup. Since primary keys are unique this will end up at a single row.
    To test for existence of a row, you'd usually use "select exists(select 1 from <table> where <condition>)".  This will output 1, if the row exists, and 0 otherwise. I don't know whether the exit state of the "sqlite" tool is reliable, but testing the output will be with this query.
    And again: If you're doing this kind of stuff, you're better off with a real languages with data types and the like. Python provides SQLite support in the standard library.

  • Custom IAC applications the best way to go for putting R/3 screens on web?

    Hi all,
    I am trying to figure out whether a Custom IAC would be a best way to go for putting custom developed R/3 transaction on the web. We want to put the R/3 transactions on the web but want to completely customize the look and feel of it. Is IAC the best way to go for it? will this work with any kind of transactions?
    cheer,
    i028982

    Hello,
    The ITS might not be the "best" way, but it sure would be an easy way.  If the transaction and screens are already created in the R/3 then you could just go to SE80 and create HTML templates to see if it will do what you want.  Steps:
    1. Transaction SE80
    2. Choose "Internet Service"
    3. Type in a custom developed z* name
    4. Right-click on the z* name and choose Create > Theme
    5. Create theme 99 (standard theme)
    6. Right-click on the z* name again and choose Create > Template
    7. Type in all information, theme number, program name and screen number.  Play with the "Generation Style" to see which one would better fit your transaction.
    After creating the screens you can publish to your ITS and give it a test.  Maybe this is all you need, if so, it would be fast and readily available.
    Best regards,
    Edgar Chuang

  • What is the best way to prepare for CERTIFICATION?

    what is the best way to prepare for CERTIFICATION?
    what is needed?
    where can i read more about it?

    Hi,
    Do as much as possible exercises based on your course material(which will be more than enough).
    If you know (some) Java and have understand the basics of OOP then this is enough for the exam.
    And do not forget:
    it is a multiple-choice test meaning that you see the possible answers.
    Either a single answer is correct (then you will have radio-buttons) or several answers are correct
    (then you will have checkboxes; in this case almost all questions will have more than one correct answer).
    You can refer to the topics for the certification
    https://websmp102.sap-ag.de/~sapidp/011000358700000499112003E
    Some links which might help
    /message/213564#213564 [original link is broken]
    /message/514469#514469 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/257122#257122 [original link is broken]
    /message/130164#130164 [original link is broken]
    /message/1916905#1916905 [original link is broken]
    /thread/167254 [original link is broken]
    /message/213564#213564 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    <b>
    you try www.sapdoamin.com
    They provide Certification simulation questions which are veryuseful and a must try site.</b>
    Yes more questions comes on OOPS so get your OOPS concepts very clear.
    You don't need to do extensive coding in OOPS.
    Just get the concepts clear and i am sure the certification will be a cake walkthrough.
    All the best and good luck with your ABAP Accreditation.

  • Is there a way to test for network connectivity (and a way to simulate it)

    Is there a way to test for network connectivity, which API to look into? Also, is there a way to test that code in the simulator, that is, to turn off the network in the simulator.
    Thanks

    A peek in the docs would help- there is a TON of information there.
    You might also try the Reachability sample app for ideas:
    http://developer.apple.com/iphone/library/samplecode/Reachability/index.html

  • Looking for best practice / installation guide for grid agent for RAC

    I am looking for best practice / installation guide for grid agent for RAC, running on windows server.
    Thanks.

    Please refer :
    MOS note Id : [ID 378037.1] -- How To Install Oracle 10g Grid Agent On RAC
    http://repettas.wordpress.com/2007/10/21/how-to-install-oracle-10g-grid-agent-on-rac/
    Regards
    Rajesh

  • New MBP - Best way to care for battery?

    Not sure if this is necessary anymore, but I am receiving my new MBP in the mail later today. What is the best way to care for the battery? Should I plug the MBP into the wall for an amount of time before turning it on, or at least wait until it is fully charged before turning it on for the first time? Is anything like that even necessary anymore?
    Thanks,
    Keith

    Here's what Apple recommends:
    http://www.apple.com/batteries/notebooks.html
    Best use is frequently and lightly. Be sure to calibrate your battery every two months or so:
    http://docs.info.apple.com/article.html?artnum=86284
    Hope this helps...

  • What would the best way to go for an virtual grid?

    I need a 3 x 8 virtual grid that I can change values to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!

    I need a 3 x 8 virtual grid that I can changevalues
    to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!Create a Grid and a Tile class. A
    Grid has a 2D array of Tile objects an
    a Tile has an attribute called Color and, say,
    an x- and y-point. Program some appropriate methods.
    Done.
    Thanks for trying, but Nanook already gave the correct answer in reply 1.Is it possible to restrict these? to like a 8 x 3 grid ?
    or should i use an if statement?

  • What is the best way to export for use on internet?

    what is the best way to export for use on internet?

    It depends. Is this for a personal web site or for a site like YouTube, Vimeo or Facebook?
    For YouTube, Vimeo and Facebook, use Publish & Share/Computer/AVCHD using one of the YouTube presets.

  • Best Way to Check for same Word in string?

    If I have an array of words, would the best way to check for the same word be to use 2 for loops?

    Huh?
    Sounds like homework...
    What is a word? Presumably a String.
    For equality of Strings you use...
        String s1 = ....
        String s2 =....
        if (s1 == s2) { equal depending on null case
        else if ((s1 != null) && (s1.equals(s2))) { equal }
    For the case of checking one array to another....
          while items in array1
                 get itema from array1
                      while items in array2
                           get itemb array2
                                  is itemb equal (see above) to itema
                                         yes - then do something

  • Is there a possibility for a one-day-test for "Adobe ExportPDF"

    Hi
    before I order "
    "Adobe ExportPDF"
    I would like to test this service /OCR-Engine.
    Does anybody know how good the OCR is for documents which have been scanned in with a flatbed scanner and tranfered into PDF with 300dpi?
    Does it recognize german documents? Could I test this for one document, before I buy the service for one year?
    Thanks
    Jochen

    Hi Ajlan,
    thank you for your reply.
    Is the Adobe ExportPDF service (engine) equivalent to Adobe Acrobat XI
    pro software?
    Or is it different. I ask especially, if the Adobe ExportPDF service
    give me back a word/spelling checked/corrected PDF or just as in Adobe
    Acrobat XI pro, whereafter I have to do the correction myself.
    Thank you
    best regards
    Jochen
    Am 19.02.2014 04:19, schrieb Ajlan huda:
    >
          Re: Is there a possibility for a one-day-test for "Adobe ExportPDF"
    created by Ajlan huda <http://forums.adobe.com/people/Ajlan+huda> in
    /Acrobat.com/ - View the full discussion
    <http://forums.adobe.com/message/6134491#6134491

  • Best way to move data and programs to another profile on same Mac?

    Hello,
    What is the best way to move data and programs to another profile on the same Mac? I have a user who's profile is corrupt, I know that most programs will work on both the new and old profile however when trying to copy the Desktop folder, or Documents folder I am getting permissions denied.
    Sort of like weeding a garden, I'm hoping I do not have to pick the data in each folder and copy individually.
    Thanks for your help!
    Johnathon

    This usually means that a configuration or preference file is corrupted.  In this user's /Home/Library/Preferences/ folder locate any preference files associated with iLinc and drag to the Trash.
    I would also check in the /Home/Library/Caches/ folder for a file or folder associated with iLinc and delete as well.
    See if the problem is resolved in the user's normal account.
    It's not that you cannot copy data from account to account, but doing so causes a lot of permissions issues that must be resolved.  The MacFixit article I linked above shows what you need to do after transferring from one account to another in order to change permissions on the "foreign" files to those of the destination account.

  • Looking for automated way to test print PnP printer after install then delete

    At times we test 20 to 30 printers in a day. I am looking for automated ways to increase the efficiency of this. I would like to simply have the printer install using PnP print a test page then delete itself after the test page or on removal. Are there any settings that can be changed on the computer to change the PnP process to make this possible. I am currently trying to learn and understand the Plug and play process so that I may find out how to get started. Any ideas would be greatly appreciated.
    Thanks
    This topic first appeared in the Spiceworks Community

    Chris
    I spent all day Googling and doing side by side comparisons of my old and new systems.
    My display is a Dell U2410. It has several presets, including sRGB and Adobe RGB. I've been using sRGB.
    On my OLD system, (Win XP, PsCS2, DwCS4) there seems to be no distinction between color managed and non color managed apps, even on this wide gamut display. I could capture (digital camera) in Adobe RGB, open and edit in PsCS2, save as .psd, convert to CMYK for print, or convert to sRGB for SFW. All images looked identical and they printed and displayed perfectly. I thought this was normal, and seemed logical. This also seems to be the source of my incorrect assumptions. I was trying to get my new machine to behave like my old one.
    So I get this new machine (Windows 7, PsCS5, DwCS5) and now (still in sRGB display mode) all color managed apps appear de-saturated. Non color managed apps are OK. If I switch the display to Adobe RGB, color managed apps are OK, but non color managed apps are way too saturated. From my investigation, I believe this is normal behavior on a wide gamut display. I've tried changing the Control Panel > Display > Screen Resolution > Advanced settings > Color Management options, but to no avail. Either I'm missing something, or Windows 7 is doing color management differently.
    It seems my only option now is to use Adobe RGB display setting for Ps, etc. and switch to sRGB for Dw and non color managed apps. Or, have 2 separate files for print and web. I've Googled 'til my eyes are numb and still not sure I'm getting this. Any enlightenment would be greatly appreciated.
    Finally, I don't see an edit function here, so I can't remove my previous incorrect reply. Moderator, please feel free to do so.
    Thanks

  • Looking for best way to set up multiple iPhone accounts

    I already have an iPhone. Planning on getting one for my wife. I need to know the best way to setup both phones on my computer. We have separate Windows accounts on our home computer. I currently have an iTunes account on my Windows user account with some apps and the music library - with some, but not a lot of purchased music.
    We also both use separate Outlook accounts for Calendar, Contacts, etc.
    Should I:
    - Sync both phones on my iTunes account? I imagine that would allow us to share any purchased music and apps. If so, can I point her phone to sync to her Outlook account?
    - Set up a new iTunes account on her Windows account? I would import my music into her library, but I would guess that she would not be able to share my purchased music or apps
    - Do something else?
    Please let me know the best approach. Thanks.

    Keep your separate logins, itunes accounts, outlook, etc., you can still share itunes content, as permitted under the EUSLA.
    Launch itunes under your WIFE"S computer login. Disable auto sync when an ipod/iphone is connected, under preferences(under the edit menu), in itunes. Log your WIFE out of her itunes account, log in using YOUR account details, connect YOUR phone, DO NOT SYNC. Go up to Store>Authorize This Computer. Then, File>Transfer Purchases. Once complete, EJECT YOUR phone. Log out of itunes, log your WIFE back in. Connect HER phone, select what content you want on HER phone, hit the sync button. She likewise can transfer purchases to your account, thus you both can share content. All updates to Apps must be done using the same account originally used to obtain them. Log in, update, log out.

Maybe you are looking for

  • Can InDesign CS6 handle pattern swatches?

    I layout catalogs and production materials for a pajama company, and I use pattern swatches extensively to depict our pajama prints on illustrated garment blanks.  I'm currently using CS3 (and trying to convince my boss to upgrade), and I have to do

  • Microsoft Word 2008 and Spaces problem - found a workaround

    Anyone who's tried running MS Word 2008 and Spaces knows that Word is pretty much unusable. The formatting palette moves to a different space, leaving behind the title bar, and the desktops just switch automatically, windows disappear, etc. Here's a

  • Setting dynamic text in tweened animation

    I'd like to be able to dynamically control text in an imported clip, where the artist has used shape tweening to animate the text. From my reading of the documentation, to do shape tweening of text you have to convert it to objects which can no longe

  • [b]FRM-92060 Oracle Developer 9i Error Message[/b]

    Dear Sir, when I have run the module that builds with Oracle 9i form developer the following error happened: Frm-92060: Filed to connect to the Server. Bad machine Specification: /forms90/l90serverlet:-1 Also when I try to run address with L90servlet

  • Af:iterator and scroll bar

    Hello, I have a popup in a page set up this way popup holds a dialog -> region with a taskflow containing only one .jsff . The .jsff file has a panel header with 4 panel boxes as child components. Everything is fine until i have this af:iterator insi