Install script - checking install option and forcing exit
Anyone know how to accomplish these two things:
1. Determine if the installation was called with a "/silent" switch on the command line
2. Force the install to stop after checking a condition (e.g. a process running) - during the "On Begin Install" step
I was originally hoping to use "Wscript.Arguments(0)" to help determine the command line, but when running the "NwEngine.Shell.Execute strCmdLine, bNoWaiting" it resolves to nothing .....
Edited by: Eric Poellinger on Jul 14, 2011 1:58 PM
Similar Messages
-
Need To Check For Nulls And Force A Date
I'm trying to check to see if a field is blank (null or blank), if so, force a date into it. My formula is giving me zeros. What is wrong with the below formula ?
If {Sales_Primary.Type_Of_Sale} = 1 And
Isnull() Then 1999-01-01My bad. I don't think Date Time fields have "empty strings" but rather 0's instead.
Try replacing the ="" with =0
If {Sales_Primary.Type_Of_Sale} = 1 And
(Isnull({TableName.Sales_Date}) OR {TableName.Sales_Date} = 0) Then #1/1/1999#
Or you could simply try it without the "OR {TableName.Sales_Date} = 0" and see what you get.
If {Sales_Primary.Type_Of_Sale} = 1 And
Isnull({TableName.Sales_Date}) Then #1/1/1999#
Jason -
EEM Script - Check BGP Neighbors and shutdown interfaces
Hello,
We have one router with 2 links to same ISP. We have 1 bgp neighbor for each link.
So, at this router we have 2 links and 2 neighbors with same ISP. And this router have conections with a router reflector
First, we are trying shutdown the router links with router reflector if both neighbor is down. I did this script attached. It´s hard to test it because we will use in 7600 routers. We tested it once and it didnt work as expectted. The variable didn´t work very well...
Any tips? Is this wrong??
Thanks.Hello,
We have one router with 2 links to same ISP. We have 1 bgp neighbor for each link.
So, at this router we have 2 links and 2 neighbors with same ISP. And this router have conections with a router reflector
First, we are trying shutdown the router links with router reflector if both neighbor is down. I did this script attached. It´s hard to test it because we will use in 7600 routers. We tested it once and it didnt work as expectted. The variable didn´t work very well...
Any tips? Is this wrong??
Thanks. -
Am I correct in assuming that if you download the Arch install scripts to your local machine (that's currently running arch), the process of installing arch onto another hard drive is exactly the same?
Last edited by cyberpsych0sis (2014-11-19 05:01:30)circleface wrote:Try https://wiki.archlinux.org/index.php/In … ting_Linux and see if it answers your question. The process is similar, but there are a few differences.
That was the second place I checked all i found was:
The goal of the bootstrapping procedure is to setup an environment from which arch-install-scripts (such as pacstrap and arch-root) run. This goal is achieved by installing arch-install-scripts natively on the host system, or setting up an Arch Linux-based chroot.
If the host system runs Arch Linux, installing arch-install-scripts is straightforward.
Which seems to say it is the same, but it comes across as pretty vague imo. -
Run same install scripts only once
I recently found the install script mechanism quite inefficient (and I'm sure many other people have noticed it as well).
for example,if I install the texlive-most group, after every package installed, mktexlsr would run once. But actually, the only one that is necessary is the last one.
So I think if pacman could run every same install script only once, this would speed pacman up a lot (especially when you haven't upgrade for two months!)
Last edited by darkraven (2011-01-23 03:25:03)Get coding:
http://projects.archlinux.org/pacman.git/
http://mailman.archlinux.org/mailman/listinfo/
https://wiki.archlinux.org/index.php/Us … cman_Hooks -
[SOLVED] Pass Environment variables from PKGBUILD to .INSTALL script
Hi everyone,
I am trying to modify the grub2-efi-bzr (http://aur.archlinux.org/packages.php?ID=38369) package making some changes in the PKGBUILD and the post-install script. I want to pass few environment variables from the PKGBUILD to the install script. How do I do that?
Some code from the PKGBUILD
_bzrtrunk="lp:grub/grub2" # GRUB2 BZR Main Trunk
# _bzrtrunk="lp:~skodabenz/grub/grub2-bzr-exp" # GRUB2 BZR Experimental Branch
_bzrmod="grub2"
if [ ${_bzrtrunk} = "lp:~skodabenz/grub/grub2-bzr-exp" ]
then
_bzrmod="grub2_exp"
pkgver="exp_${pkgver}"
fi
# grub-extras bzr repo locations
_bzrtrunk_zfs="lp:~skodabenz/grub/grub2-extras-zfs"
_bzrtrunk_lua="lp:~skodabenz/grub/grub2-extras-lua"
if [ "$CARCH" = 'i686' ]
then
_EFI_ARCH=i386
elif [ "$CARCH" = 'x86_64' ]
then
_EFI_ARCH=x86_64
fi
# _EFI_ARCH=x86_64 # Uncomment if you want to override the if condition for _EFI_ARCH above, incase the EFI ARCH does not match the Linux Kernel ARCH.
# $CARCH=x86_64 and _EFI_ARCH=i386 requires gcc-multilib with lib32-glibc installed in the system.
# I do not know about $CARCH=i686 and _EFI_ARCH=x86_64
if [ ${_EFI_ARCH} = "i386" ]
then
pkgver="${pkgver}_x86"
_trns_name="grub2_efi_x86"
elif [ ${_EFI_ARCH} = "x86_64" ]
then
pkgver="${pkgver}_x64"
_trns_name="grub2_efi_x64"
fi
Now the post-install script needs the values of _EFI_ARCH and _trns_name env variables. I do not want to copy the if statements to that script as these are decided at compile time but needed while setting up grub2-efi. This is due to the fact that EFI-ARCH need not match the Linux Kernel ARCH. How do I do that.
Code from the post-install script
${_trns_name}-install --root-directory=/ --no-floppy --recheck --debug
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/lua.mod /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfs.mod /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfsinfo.mod /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/unifont.pf2 /boot/${_trns_name}/
cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/ascii.pf2 /boot/${_trns_name}/
${_trns_name}-mkimage --verbose --directory=/usr/lib/${_trns_name}/${_EFI_ARCH}-efi --prefix="" --output=/boot/${_trns_name}/grub2.efi --format=${_EFI_ARCH}-efi ${_EFI_APP_MODULES}
Thank in advance.
Last edited by skodabenz (2010-07-27 15:46:40)falconindy wrote:
Don't rely on %foo% existing -- it won't after the first build and this will prevent the PKGBUILD from being reentrant. I would use something like this (untested):
sed -i "s|^\(_EFI_ARCH\)=.*|\1=${_EFI_ARCH}|; \
s|^\(_trns_name\)=.*|\1=${_trns_name}|; \
s|^\(export _EFI_APP_MODULES\)=.*|\1=${_EFI_APP_MODULES}|" \
${startdir}/grub2-efi-bzr.install
Your code works except for 1 problem in the install script I want
export __EFI_APP_MODULES="${_EFI_APP_MODULES}" (the passed ${_EFI_APP_MODULES} value should again come inside double quotes).
right now
export _EFI_APP_MODULES=ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm
which is equivalent to
export _EFI_APP_MODULES=ata
I want
export _EFI_APP_MODULES="ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm"
How to do it with sed since sed already uses double quotes? -
Failed to export using the options you specified. Please check your options
Hi..
i was using crystal report10.5 with visual studio 2008(c#)..
now im migrated to visual studio 2010....and i have installed these setups http://www.sdn.sap.com/irj/boc/crystalreports and http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet ...
when i open my project it will ask to convert crystal reports and i have converted ...reports are working fine but in tool bar if i click and select a pdf format to export it will display a error message Failed to export using the options you specified. Please check your options and try again. and if i click on print button it is not working(i have set printmode=pdf)...when i was working on vs2008 both were working fine but in vs2010 it is not working..Hello,
What type of app you are using? A win app will not have this option. Also what FW are you using? Have you made changes to the viewer(after migrating) and ensure that you are using the 13.0.2000.0?
Take a look at [this|Export and print problem; thread, also.
Thanks. -
Firefox no longer opens PDF files. Explorer works OK. I have checked the Applications window in the Tools/Options and it says I am using PDF-xChange viewer....It just does not do anything. I get the message in the Download Error window which says...."could not be saved, because you cannot change the contents of that folder. Is the same error which I get when I attempt to open a PDF file on a webpage using the Firefox browser....Explorer works OK so I am now forced to Explorer to read PDF files via a browser.
== This happened ==
Every time Firefox opened
== After removing a old copy of PDF-xChange Viewer and updating to the last versionThe error message suggests that the file (pdf) that you're trying to download cannot be saved in the folder Firefox tries to save it in.
This can be due to several things - it could be a non-existing folder (could be a problem with the updated application), the hard drive could be too full to store the file (less likely if you can generally surf the net without error messages) or it could contain an error.
To complicate things a little further, it seems to me that you have (at least) 3 different PDF-handling plugins in Firefox from different programs:
PDF-XChange Viewer Netscape Gecko Plugin
Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
Zeon PDF Plugin For Mozilla
This shouldn't matter too much, thou, as it will most likely simply use either the latest installed or the first one it finds when looking up associations for files of type 'pdf'.
First, in Tools > Options... > tab General > section File download, select "Save files in" and Browse your way to a (non-writeprotected!) folder on a drive where you're certain there is enough free space - like the Desktop folder to make the files end up on your Windows desktop.
Second, under Applications as you mention yourself, find all document types related to PDF files, and set these to one of the programs. Check the entire list to be sure there isn't one hiding under one of the other programs' document types (Adobe Acrobat document, PDF X-Change and Zeon).
Restart Firefox, and try opening a PDF again.
If it fails once more, try changing the documents again to one of the other programs, like "Use Adobe Acrobat (in Firefox)".
If it STILL fails, change it to simply "Save file". Then you can simply browse your way to the download folder with Windows Explorer, and doubleclick the PDF file to see which program actually handles PDF files as default on the machine, and if it works properly.
If Firefox flatly refuses to save the PDF files in a folder which you're certain both exist and has space for the file, some (probably security related) program is most likely interfering with Firefox, preventing it in storing PDF files on the system. -
Firefox is connecting to the Internet by itself (i.e., I have not opened the browser) and then installing updates (e.g., Firefox 28 today) even though I have checked the option under Advanced to "Check for updates, but let me choose where to install." I am using Windows 7 on an HP EliteBook behind my company's firewall.
Reset your firefox and try once again!!!
The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
'''Note''': ''This will cause you to lose any Extensions and some Preferences.''
*Open websites will not be saved in Firefox versions lower than 25.
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us!
Thank you. -
ave to quit. I have checked system preferences and the option is still checked. Is anyone having the same problem?
Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Select Preferences/com.apple.driver.AppleBluetoothMultitouch.trackpad.plist.
Move the .plist to your desktop.
Log out/in and test. If it works okay, delete the plist from the desktop.
If the same, return the .plist to where you got it from, overwriting the newer ones.
Thanks to leonie for some information contained in this.
You might need to redo the View settings after an update. -
Script for downloading(svn) and install E17
I've been working on a script that download for the svn repository e17, compiler and install. I've made this script more as a to lear more about bash script. You can do the same thing as my script with yaourt. I hope someone might need it.
#!/bin/bash
# Title: Arch E17 svn #
# Auther: Kamil MIklaszewski ([email protected]) #
# Date: 2008-12-19 19:10 #
# Licence: GPL #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
# MA 02110-1301, USA. #
# Version: 1.0 #
# Description: This script was writen for Archlinux. It will download e17 #
# from the svn repository and it will do a full installation. #
# This script also take care of the dependency for all of the #
# programs that are installed with e17. #
# TODO: For version 1.0 #
# -have the scipt use dialog #
# -make the script more autamatic #
# Change Log: *2008-12-19 #
# -creation of script #
# Function name: prep
# Function paramiter(s): none
# Function description: This function prepers the envirement to run
# the rest of the script
prep()
#make a temporery directory and go to it
mkdir -p ~/arch_e17_svn
cd ~/arch_e17_svn
#export this path to compile succesfuly
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
# Function name: message
# Function paramiter(s): Word to be printed on the screen
# Function description: This function print messages on the screen.
message()
#print a message to the screen
echo -e "==>" $*
# Function name: downloadPackage
# Function paramiter(s): none
# Function description: This function go to the user's home
# directory and downloads e17 from svn repo.
downloadPackage()
message "Downloading " $1 " from E17 svn repository."
#download the specifed package with less text
svn co --quiet http://svn.enlightenment.org/svn/e/trunk/$1 $1-svn
# Function name: generalDependencys
# Function paramiter(s): none
# Function description: This fuction install the general
# dependencys.
generalDependencys()
message "Installing Dependencys..."
#list of package needed to be installed
generalDependencysList=(
'svn'
'm4'
'autoconf'
'automake'
'libtool'
'pkgconfig'
'texinfo'
'zlib'
'libpng'
'libjpeg'
'freetype2'
'xorg'
'dbus'
'hal'
'pam'
'librsvg'
'libnotify'
'curl'
'openssl'
'libungif'
'libtiff'
'gettext'
'glibc'
'glibmm'
'doxygen'
'giflib'
'cairo'
'libx11'
'libxext'
'libxrender'
'fontconfig'
'libxcb'
'sdl'
'mesa'
'qt'
'librsvg'
'libtiff'
'directfb'
#install the dependencys in the list
sudo pacman -Sq --needed ${generalDependencysList[@]}
# Function name: installPackage
# Function paramiter(s): The name of the package to install
# Function description: This fuction need one paramiter that is
# the package to configure and install.
installPackage()
#change directory to the program to configure and install
cd ~/arch_e17_svn/$1-svn
message "Configurating package " $1
#run the autogen script that will configure and
#make read to install this program
./autogen.sh
message "Compiling package " $1
#now compile the source file of the program
make
message "Installing package " $1
#now install the program
sudo make install
cleanUp()
rm -r ~/arch_e17_svn
# MAIN #
main()
#preper the envirement
prep
#install the general dependecys using pacman
generalDependencys
#list of packages to download and install
packagesList=(
'eina'
'eet'
'evas'
'ecore'
'efreet'
'embryo'
'edje'
'e_dbus'
'e'
#loop that gos through the list and downloads the packages
for package in ${packagesList[@]}
do
downloadPackage $package
message "Done\n"
done
#loop that gos through the list and installs the packages
for package in ${packagesList[@]}
do
installPackage $package
message "Done\n"
done
mainpressh wrote:to not duplicate work I've already created a python script some time ago which you can use to build e17 pacman packages using the community PKGBUILDs: http://dev.archlinux.org/~ronald/e17.html
I may extend its usage if someone sees any use for it. Either way, just thought I should drop it here.
is that script any different from a full build through makepkg/yaourt using AUR's Pkgbuilds?
I tried to use it but i get a list of errors similar to
cp: impossibile creare il file normale `eina-build/eina/.svn/prop-base/NEWS.svn-
base': Permission denied
but if i can use yaourt, why not?
Edit: sorry, i looked at the python source and realized that it actually just syncs abs and then runs makepkg and namcap for each package. so i guess i'll use yaourt instead (or try to understand why makepkg exits with that error)
Last edited by pikiweb (2009-06-19 08:48:46) -
I have MAC OSX 10.5.8 and need to install adobe illustrator. I checked the compatibility and found that CS5 will work.Can any one help where i can find it. The trail version is fine with me as i just have to use it for couple of days till i get my mac book back from service. Can any one help me on this.
You are welcome, ameronweb.
To elaborate a bit, you may come across offers of a new/unopened/unregistered version, which is the simplest case (you would need a guarantee). Other cases require much detailed information (and a guarantee).
If upgrading to 10.6.8 or higher is an option, you could use CS6. -
I am changing laptops and have tried to download and install Acrobat 9 Standard from the Adobe website, but get message that my serial number is invalid. I log in and double check my account and it shows as a valid serial number. Now what?
If you had it on a laptop that crashed and you threw away, it is still considered as activated on that machine. YOu should contact Adobe by chat or by phone and have them deactivate for you.
Here is a link to a page with options to help make contact:
http://www.adobe.com/support/download-install/supportinfo/
If you are getting a message that indicates the serial number is not valid, you should look thru the following:
Error "The serial number is not valid for this product" | Creative Suite
http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html -
My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X mountain lion from internet, is there any where can I get offline download of OS file where I can install directely OS X Mavericks.
Hi, original poster here. I did not realize this would generate more discussion so I never checked back. I still had my warranty, so I took it to the store and got it repaired. The original problem I had was a screen with this icon flashing when I attempted to boot it up:
When I took it to the store, they told me that my computer was unable to communicate with the hard drive. I had this same problem three times in two months where this screen reappeared. Each time I went back to the store and they said the cause was different, but they were all hardware issues that physically made it impossible to communicate with the hard drive. After the third time, they simply replaced my laptop and I haven't had the same problem.
So in short: The reason you can't reinstall or move anything when you encounter this screen appears to be because nothing can communicate with the hard drive in the first place. You can't reach the disk or anything on it. So I don't believe it's possible to do anything besides take it to a physical store and have it fixed. -
How to check for Optional Oracle 10gR2 components installed?
Hi
How can I get a list of all optional oracle database components/features installed (some of them may require additional license)? I was going through list of directory objects in a database and I spotted "ORACLE_OCM_CONFIG_DIR" in one of the databases (others don't have it). When I checked, it turned out to be a directory required for Oracle Configuration Manager (this may even be a totally separate install).
I have to configure a new oracle database server where I have to install whatever is installed on an existing one.
Oracle 10gR2 - RHEL 5.8
Please advise!
Best regardsThanks for your response. I just checked the output and "Oracle Configuration Manager" is not listed.
EM
Oracle Enterprise Manager
10.2.0.5.0
VALID
EXF
Oracle Expression Filter
10.2.0.5.0
VALID
SDO
Spatial
10.2.0.5.0
VALID
ORDIM
Oracle interMedia
10.2.0.5.0
VALID
AMD
OLAP Catalog
10.2.0.5.0
VALID
XDB
Oracle XML Database
10.2.0.5.0
VALID
CONTEXT
Oracle Text
10.2.0.5.0
VALID
OWM
Oracle Workspace Manager
10.2.0.5.0
VALID
ODM
Oracle Data Mining
10.2.0.5.0
VALID
CATALOG
Oracle Database Catalog Views
10.2.0.5.0
VALID
CATPROC
Oracle Database Packages and Types
10.2.0.5.0
VALID
JAVAVM
JServer JAVA Virtual Machine
10.2.0.5.0
VALID
XML
Oracle XDK
10.2.0.5.0
VALID
CATJAVA
Oracle Database Java Packages
10.2.0.5.0
VALID
APS
OLAP Analytic Workspace
10.2.0.5.0
VALID
XOQ
Oracle OLAP API
10.2.0.5.0
VALID
So there may be more that are not listed but installed.
Best regards
Maybe you are looking for
-
HP ENVY TouchSmart 15-j050ex GeForce driver instalatio​n
Hello, I upgraded HDD to SSD (in M2 slot) and I can't install GeFore driver - Nvidia software says that it cannot find compatibile equipment (it should find 750M if I not mistaken ). I installed all drivers from HP product page, in the Device Manage
-
Flash builder 4 and flash 10.1 standalone debugger issue on osx
If I use the standalone flash debugger version (Flash Player Debugger 10.1.52.14) with flash builder 4 on osx 10.6.3 then this happens: I compile the project and the debugger opens. If I click the red stop button then it never closes the debugger. I
-
XSQL - unable to connect to database
I have installed the XSQL Servlet. I am trying to access an Oracle 8i database on a WinNT server (the client is on a WinNT workstation) using XSQL pages. The lines in the XSQLConfig.xml file are as follows: <connection name="testdb"> <username>scott<
-
CFileDialog DoModal not working
I have a solution with 2 projects developed on an XP PC in Visual c++ 6.0 and converted to Visual Studio 2010 and running on windows 7. One of the projects is a dialog based MFC application. When I run it, the main dialog is displayed from DoModal(
-
Mail notifications in 10.9.2 open message window not Mail
With yesterdays 10.9.2 update clicking on Mail notifications now opens new messege window with that email, instead of just highlighting it in main Mail wondow. This is amazingly annoying and nonproductive. Is there a way to switch it back?