Creating setup for SQL Server 2008 Express with WIX - sql-server

The command below runs successfully on the command line but when I put it to Wix Bootstrapper project it gives me an error.
The code that I run on command line is
setup.exe /ACTION=INSTALL /Q /ISSVCPASSWORD="password6161*"
/RSSVCPASSWORD="password6161*" /SAPWD="password6161*"
/INSTANCENAME="aaa5554" /SECURITYMODE="SQL"
/ConfigurationFile=ConfigurationFile.INI
The code that I write into the Wix
<Chain DisableSystemRestore="yes">
<PackageGroupRef Id="SqlServerExpress"/>
</Chain>
<?define InstanceName = "HyperionSSSS321312" ?>
<PackageGroup Id="SqlServerExpress">
<ExePackage Id="Sql2008Express"
DisplayName="SQL Server 2008 Express"
Cache="no"
Compressed="no"
PerMachine="no"
Permanent="no"
Vital="yes"
Name="Package\SqlServer\setup.exe"
SourceFile="Package\SqlServer\setup.exe"
InstallCommand="/ACTION=INSTALL /Q /ISSVCPASSWORD=test* /RSSVCPASSWORD=test* /SAPWD=test* /INSTANCENAME=$(var.InstanceName) /INSTANCEID=$(var.InstanceName) /SECURITYMODE=SQL /ConfigurationFile=ConfigurationFile.INI"
UninstallCommand="/Action=Uninstall /INSTANCENAME=$(var.InstanceName) /FEATURES=SQL /Q /HIDECONSOLE">
<ExitCode Value ="3010" Behavior="forceReboot" />
</ExePackage>
</PackageGroup>
When I run the setup file that Wix produced for me it fails
The log is below
1AC:32FC][2014-05-23T17:48:29]w321: Skipping dependency registration on package with no dependency providers: Sql2008Express
[11AC:32FC][2014-05-23T17:48:29]i000: Setting string variable 'WixBundleLog_Sql2008Express' to value 'C:\Users\BARIS~1.VEL\AppData\Local\Temp\SetupBoot_20140523174827_0_Sql2008Express.log'
[11AC:32FC][2014-05-23T17:48:29]i000: Setting string variable 'WixBundleRollbackLog_Sql2008Express' to value 'C:\Users\BARIS~1.VEL\AppData\Local\Temp\SetupBoot_20140523174827_0_Sql2008Express_rollback.log'
[11AC:32FC][2014-05-23T17:48:29]i201: Planned package: Sql2008Express, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: Yes, dependency: None
[11AC:32FC][2014-05-23T17:48:29]i207: Planned related bundle: {c1dddf1e-71bd-4847-b7c6-161cb0096f1a}, type: Upgrade, default requested: None, ba requested: None, execute: None, rollback: None, dependency: None
[11AC:32FC][2014-05-23T17:48:29]i299: Plan complete, result: 0x0
[11AC:32FC][2014-05-23T17:48:29]i300: Apply begin
[11AC:32FC][2014-05-23T17:48:29]i000: Caching bundle from: 'C:\Users\BARIS~1.VEL\AppData\Local\Temp\{19453c37-f078-45d3-939a-92a23e74184d}\.be\SetupBoot.exe' to: 'C:\Users\baris.velioglu\AppData\Local\Package Cache\{19453c37-f078-45d3-939a-92a23e74184d}\SetupBoot.exe'
[11AC:32FC][2014-05-23T17:48:29]i320: Registering bundle dependency provider: {19453c37-f078-45d3-939a-92a23e74184d}, version: 1.0.0.0
[11AC:1390][2014-05-23T17:48:29]i338: Acquiring package: Sql2008Express, payload: Sql2008Express, copy from: D:\EAE_Automation\EAE_Automation\EAE_Automation\SetupBoot\bin\Debug\Package\SqlServer\setup.exe
[11AC:1390][2014-05-23T17:48:29]i000: Setting string variable 'WixBundleLastUsedSource' to value 'D:\EAE_Automation\EAE_Automation\EAE_Automation\SetupBoot\bin\Debug\'
[11AC:1390][2014-05-23T17:48:29]i305: Verified acquired payload: Sql2008Express at path: C:\Users\baris.velioglu\AppData\Local\Package Cache\.unverified\Sql2008Express, moving to: C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\Package\SqlServer\setup.exe.
[11AC:32FC][2014-05-23T17:48:29]i301: Applying execute package: Sql2008Express, action: Install, path: C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\Package\SqlServer\setup.exe, arguments: '"C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\Package\SqlServer\setup.exe" /ACTION=INSTALL /Q /ISSVCPASSWORD=enerji2014* /RSSVCPASSWORD=enerji2014* /SAPWD=enerji2014* /INSTANCENAME=HyperionSSSS321312 /INSTANCEID=HyperionSSSS321312 /SECURITYMODE=SQL /ConfigurationFile=ConfigurationFile.INI'
[11AC:32FC][2014-05-23T17:48:29]e000: Error 0x84c4000e: Process returned error: 0x84c4000e
[11AC:32FC][2014-05-23T17:48:29]e000: Error 0x84c4000e: Failed to configure per-user EXE package.
[11AC:32FC][2014-05-23T17:48:29]i319: Applied execute package: Sql2008Express, result: 0x84c4000e, restart: None
[11AC:32FC][2014-05-23T17:48:29]e000: Error 0x84c4000e: Failed to execute EXE package.
[11AC:32FC][2014-05-23T17:48:29]i351: Removing cached package: Sql2008Express, from path: C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\
[11AC:32FC][2014-05-23T17:48:29]i330: Removed bundle dependency provider: {19453c37-f078-45d3-939a-92a23e74184d}
[11AC:32FC][2014-05-23T17:48:29]i352: Removing cached bundle: {19453c37-f078-45d3-939a-92a23e74184d}, from path: C:\Users\baris.velioglu\AppData\Local\Package Cache\{19453c37-f078-45d3-939a-92a23e74184d}\
[11AC:32FC][2014-05-23T17:48:29]i399: Apply complete, result: 0x84c4000e, restart: None, ba requested restart: No

Related

msiexec installation keeps running into a "A required privilege is not held by the client." error

I am working on a software add-on batch script install, the main program installs without an issue, however the add-on potion of the installation keeps running into a "A required privilege is not held by the client." error.
I have tried running the batch script from my regular user account and also from my separate admin account, no difference. There is no such error when doing an installation with the msi file manually.
An insert from my script:
set base_path=%~dp0
start /wait msiexec /i "%base_path%\PDF995AddIn2Setup.msi" InstallDir="%SystemDrive%\pdf995\PDF995AddIn2" /qb /L*V! "C:\PDF995_and_AddIn.log"
I have already tried numerous things to try and fix this error code to no avail.
Running the batch script through an Administrator Command Prompt: same error
Reformatting the msiexec command line and trying different file paths / options: same error
Changing User Account Control (UAC) settings: same error
Modifying/Adding Registry Keys: same error
What I found in the log file:
MSI (s) (BC:E4) [10:32:45:926]: Note: 1: 2205 2: 3: MsiPatchCertificate
MSI (s) (BC:E4) [10:32:45:927]: LUA patching is disabled: missing MsiPatchCertificate table
MSI (s) (BC:E4) [10:32:45:928]: Resolving source.
MSI (s) (BC:E4) [10:32:45:929]: Resolving source to launched-from source.
MSI (s) (BC:E4) [10:32:45:930]: Setting launched-from source as last-used.
MSI (s) (BC:E4) [10:32:45:931]: PROPERTY CHANGE: Adding SourceDir property. Its value is '\Install\Standard_Apps\all\PDF995\PDF995\'.
MSI (s) (BC:E4) [10:32:45:932]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is '\Install\Standard_Apps\all\PDF995\PDF995\'.
MSI (s) (BC:E4) [10:32:45:933]: PROPERTY CHANGE: Adding SourcedirProduct property. Its value is '{A34C938B-756F-498B-AE52-517C66ED300F}'.
MSI (s) (BC:E4) [10:32:45:934]: SOURCEDIR ==> \Install\Standard_Apps\all\PDF995\PDF995\
MSI (s) (BC:E4) [10:32:45:935]: SOURCEDIR product ==> {A34C938B-756F-498B-AE52-517C66ED300F}
MSI (s) (BC:E4) [10:32:48:044]: Note: 1: 1314 2: \Install\Standard_Apps\all\PDF995\PDF995\
MSI (s) (BC:E4) [10:32:48:045]: SECREPAIR: Error in CreatePath
MSI (s) (BC:E4) [10:32:48:046]: SECUREREPAIR: SecureRepair Failed. Error code: 522FE515FB8
MSI (c) (54:98) [10:32:48:054]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 1314. A required privilege is not held by the client.
MSI (s) (BC:E4) [10:42:51:580]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (BC:E4) [10:42:51:581]: Product: PDF995AddIn2 -- Error 1314. A required privilege is not held by the client.

"package or namespace load failed" error in loading R package "litteR"

i am getting the following error whenever i try to load the package "litteR". I have updated all my packages and dont have this problem with any other ones
library(litteR)
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: package or namespace load failed for ‘litteR’:
.onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/tcltk/libs/tcltk.so, 0x000A): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/tcltk/libs/tcltk.so
Reason: tried: '/opt/X11/lib/libX11.6.dylib' (no such file), '/usr/lib/libX11.6.dylib' (no such file)
In addition: Warning message:
In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1
im not sure why this is happening, i have a macbook pro, not sure if this makes a difference
You need to install the commando line tools. Open the Terminal.app and run the following line xcode-select --install

Getting "was unexpected at this time" error while running standalone.bat file

I am getting below error while bringing up jboss 6.4 server in windows by executing standalone.bat file:
?roundrobin was unexpected at this time.
Log:
C:\work\jboss-gradle-test\JbossDir\jboss-eap-6.4\bin>standalone.bat
Calling "C:\work\jboss-gradle-test\JbossDir\jboss-eap-6.4\bin\standalone.conf.bat"
Setting JAVA property to "C:\Program Files\Java\jdk1.8.0_152\bin\java"
JBoss Bootstrap Environment
JBOSS_HOME: "C:\work\jboss-gradle-test\JbossDir\jboss-eap-6.4"
JAVA: "C:\Program Files\Java\jdk1.8.0_152\bin\java"
JAVA_OPTS: "-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -XX:+UseCompressedOops -Dprogram.name=standalone.bat -Xms8G -Xmx8G -XX:MaxPermSize=512M -Djava.net.preferIPv4Stack=true -Djboss.modules.policy-permissions=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.as.management.blocking.timeout=6000 -DPRIMARY_CONNECTIONS_EAS=primary:\(127.0.0.1\)?roundrobin=false,fresh=false,retry=2,recoverInterval=16000,handlertimeout=25000,overalltimeout=25000"
?roundrobin was unexpected at this time.

Ansible install RethinkDB on ubuntu 16

I am trying to use ansible package to install a specific version of RethinkDB on ubuntu 16.04.
I use :
- name: Ensure rethinkDB package repository is present
apt_repository: repo='deb http://download.rethinkdb.com/apt xenial main' state=present
tags:
- rethinkdb
- name: install RethinkDB
package: name=rethinkdb-2.3.2 state=latest
tags:
- rethinkdb
However I get the following error:
TASK [install RethinkDB]
******************************************************* task path: /Users/nha/.../playbook.yml:173 fatal:
[machine]: FAILED! => {"changed": false, "failed": true, "msg": "No
package matching 'rethinkdb-2.3.2' is available"} to retry, use:
--limit #ops/ansible/playbook.retry
Even leaving out the version, I get the error:
TASK [install RethinkDB]
******************************************************* task path: /Users/nha/.../playbook.yml:173 fatal:
[machine]: FAILED! => {"cache_update_time": 0, "cache_updated": false,
"changed": false, "failed": true, "msg": "'/usr/bin/apt-get -y -o
\"Dpkg::Options::=--force-confdef\" -o
\"Dpkg::Options::=--force-confold\" install 'rethinkdb'' failed:
E: There were unauthenticated packages and -y was used without
--allow-unauthenticated\n", "stderr": "E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n", "stdout":
"Reading package lists...\nBuilding dependency tree...\nReading state
information...\nThe following additional packages will be installed:\n
libcurl3\nThe following NEW packages will be installed:\n libcurl3
rethinkdb\n0 upgraded, 2 newly installed, 0 to remove and 0 not
upgraded.\nNeed to get 11.2 MB of archives.\nAfter this operation,
40.2 MB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n rethinkdb\n", "stdout_lines":
["Reading package lists...", "Building dependency tree...", "Reading
state information...", "The following additional packages will be
installed:", " libcurl3", "The following NEW packages will be
installed:", " libcurl3 rethinkdb", "0 upgraded, 2 newly installed, 0
to remove and 0 not upgraded.", "Need to get 11.2 MB of archives.",
"After this operation, 40.2 MB of additional disk space will be
used.", "WARNING: The following packages cannot be authenticated!", "
rethinkdb"]} to retry, use: --limit #ops/ansible/playbook.retry
The first error message states that the RethinkDB apt repo doesn't contain a package for a 2.3.2 version.
The second error is because you haven't yet added the apt key to trust this repo. RethinkDB's Ubuntu installation instructions also mentions that you will need to add their apt key.
You can easily do this with the apt_key module:
- name: add rethinkdb apt key
apt_key: url=https://download.rethinkdb.com/apt/pubkey.gpg
As an aside, it doesn't really make much sense to specify a version and then also specify latest on the state.

XLConnect, rJava and package building

I am writing a function that i want to include in a user-defined package (MYPACKAGE). The function is a follows:
readSchedule <- function(FILE){
WB = loadWorkbook(FILE)
WS= readWorksheet(WB, sheet = 'Sheet1',header = TRUE)
return(WS)
}
where FILE is the name of the Excel file i want to read. When writing this function, I want it to import XLConnect, since that is the package it uses. I placed header code defining the function:
#param FILE Excel file
#return Excel data
#export
#import XLConnect
I have also added import(XLConnect) to the NAMESPACE and the DESCRIPTION file of MYPACKAGE. The package builds fine (or at least at first cut it appears to build OK) but when i run "Check Package" it fails and gives me the following error:
* installing *source* package 'MYPACKAGE' ...
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
I have the correct version of Java and can load rJava just fine. i've tried importing rJava (similar to XLConnect) but i get the same error. Below is my sessionInfo:
R version 3.1.2 (2014-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MYPACKAGE
loaded via a namespace (and not attached):
[1] chron_2.3-45 data.table_1.9.4 digest_0.6.8 lubridate_1.3.3 memoise_0.2.1 plyr_1.8.1
[7] Rcpp_0.11.1 reshape2_1.4 rJava_0.9-6 stringr_0.6.2 tools_3.1.2 XLConnect_0.2-7
It looks like you are building your package on a Windows 64-bit machine with a 64-bit version of Java installed. When checking your package using R CMD check, R by default also attempts to check your package on other sub-architectures (i386, 32-bit) which in your case would in addition require a 32-bit installation of Java.
If you want to check your package also for i386 you may just additionally install Java 32-bit. The other option is to pass the option --no-multiarch to your R CMD check call, e.g. R CMD check --no-multiarch MYPACKAGE.

Resources