[WiX-users] crystal 2008 (12.2) msm
I am trying to my installer working with the crruntime_12_2.msm from Crystal Reports. It is giving me 23 errors most of which are web.config is installed by two different components. First I don't know why it is installing a web config ( i only really need the viewer ) Plus i need to get rid of all these ICE30 errors Has someone installed this before, and got a sample or any suggestions? Thanks -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/crystal-2008-12-2-msm-tp5051897p5051897.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] transactions in db scripts
I am wondering about how you guys handle transactions in db upgrade scripts. From what i have seen sql server, does not allow create/alter/drop functions in transactions unless you have some flags sets. First am i correct with this? Next how do you guys go about updating the db? Should i surround my script with a transaction? I would imagine the transaction will get quite large with db changes etc... Or do i just let the scripts go and assume that they will work. - I am planning on backing up the db before i start the install anyway, so even if it fails we could just overwrite it with the backup ( which would be manual, but at least the db is not in a half upgraded state ) Is there a good clean way to rollback if there is an error with the install? Thanks. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/transactions-in-db-scripts-tp5019222p5019222.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] db install thoughts
I am working on a install app that needs to install/update a db. The system will need to install/upgrade the database. The first time i will need to create db (with one or more sql files), Each time after that I will need to issue one or more scripts based on the current version of the db. I see how to use sqldatabase and sql script to create and upgrade the dbs. But it just looks so complicated. I will need two sqldatabase commands, one with integrated security one without. For each of the sqldatabase command i will have one of more scripts per version. Each file needs some check that will check the db version and only run if needed. ( This also includes some special work so that x.x.x as a version will be understood in the db ) I was thinking, Could i do all of this easier with a custom action. Yes I understand that it would be a little more work to begin with, but it seems to me it may be easier to maintain over the long term. I was thinking of a simple custom dll that will use create database to create the db on the server backup my db before the install get the db version and execute embedded sql scripts to bring it up to date I may be shooting myself in the foot. But I am interested in knowing the benefits/drawbacks to this approach. The biggest advantage I see is that the code will be easier to read ( not multiple xml components ) It will be easier to follow, since it seems this is more suited to a program centric approach rather than a msi/database approach. Easy to debug because i could run it without runnning the installer. The biggest disadvantages i see, is I will be wrapping my own sql connection stuff which bypasses the tested sqldatabase/util msi code and i will have to change my custom action every rebuild. Please give me some wisdom here. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/db-install-thoughts-tp5016287p5016287.html Sent from the wix-users mailing list archive at Nabble.com. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] installlocation at runtime with customaction
I have several subdirectories that need to be created and shared when i install my app. During the first time install they will look something like this AppData Photos Reports But each of these could hold a lot of data. So my app is built to be able to look on different drives. The user can just copy/paste the files somewhere else, and change some settings in the db and it will work fine. During an update though i may need to know where these locations are so i can copy new files to these folders as needed. ( We can assume they will be on the same machine, but maybe different drives ) So what i would like to do, is during the first install, use my default directory structure like the above. But during an upgrade. ( we will technically unistall/reinstall - but the data in these directories should remain ) I want to look for the location in the db, and set my install locations appropriatly. I figure a custom action called after costinitialize could get the locations just fine. Even return the default directories as needed. My question though is how to organize the directory xml, and put my directories in there. i thought something like this directory id=photo name={myphotodir} ... /directory directory id=reports name={myreportdir} ... /directory But it could cause some issues. The directories could have the same root or not, they may even be on different drives. Does wix even let you do that? Can I install on two drives at all? Any Suggestions? -- View this message in context: http://n2.nabble.com/installlocation-at-runtime-with-customaction-tp4892134p4892134.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] skip almost dialogs on upgrade
When i am doing a upgrade of my application. ( i am un-installing an re-installing ) I would like to skip all the user interaction dialogs. Right now i have this in my setup Publish Dialog=WelcomeDlg Control=Next Event=NewDialog Value=VerifyReadyDlgPREVFOUND/Publish This of course will skip the license, setuptype etc... dialogs. but the user still has to press next on the welcomedialog, and press next on the verifyreadydlg I would like to minimize the amount of clicks the user has to do. My best is once the msi is run, that it goes directly to the progess dialog and starts the install. I do want to show the progress dialog, so the user will see the install working. And during a first time install i still want to go though all the standard dialogs. How do i do this? -- View this message in context: http://n2.nabble.com/skip-almost-dialogs-on-upgrade-tp4866051p4866051.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] read a file + advertise
I would seem to me that i should default to what the file says. So basically if there is a file use it, this would allow me to change the settings if needed. So why do you think you should default to the registry. -- View this message in context: http://n2.nabble.com/read-a-file-advertise-tp4834153p4861841.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] read a file + advertise
I don't want to rely on my end users to tell me certain installation settings. So i decided to make a xml file that that is located in the same dir as the msi, i then read and parse with custom action, and write those settings to my users computer. I just ran into an issue, i was using advertised shortcut, and when a brand new user tries to run the application ( the app has been installed, but this user has not run it) it runs the cached msi file. Which of course does not have the xml file with it. So my settings are all screwed up. I figure i can remove the advertise, and that should work. But is there another way. Am i doing this the correct way overall? -- View this message in context: http://n2.nabble.com/read-a-file-advertise-tp4834153p4834153.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] read a file + advertise
Ok, i can save the data that is in my xml in the registry. But i will need to do that only the first time. How do i determine, if this is a first time install ( where i need to read the xml file) for an advertise install where i need to read the registry. Should i just have my custom action check the registry first? If i do that, what will happen on an uninstall/re-install. I need to to re-read the xml file then. Should i always write to the registry also, even if the values are already there? -- View this message in context: http://n2.nabble.com/read-a-file-advertise-tp4834153p4834819.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] migratefeaturestates
Found it, the inclusion range was not correct. -- View this message in context: http://n2.nabble.com/migratefeaturestates-tp4695528p4705376.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] desktop shortcuts not working
I am trying to put a few desktop shortcuts on the users screen, but I really don't know why they are not working. Component Id=comp_jail_20 DiskId=1 Guid=6EFE8924-927A-4731-9C8D-437F2C5F81EA File Id=file_jail_20 Checksum=yes Source=c:\bin\jail.exe KeyPath=yes Shortcut Id=sm_jail Directory=ProgramMenuDir Name=Jail Guardian WorkingDirectory=INSTALLDIR Advertise=yes Icon=jail.exe IconIndex=0/ Shortcut Id=dt_jail Directory=DesktopDir Name=Jail Guardian WorkingDirectory=INSTALLDIR Advertise=yes Icon=jail.exe IconIndex=0/ /File /Component Directory Id=TARGETDIR Name=SourceDir Directory Id=DesktopDir Name=Desktop / /Directory The program menu shortcut works fine, but the desktop shortcut does not. I have tried both Directory Id=DesktopDir Name=Desktop / and Directory Id=DesktopDir Name=DesktopFolder / But neither seemed to work Thanks -- View this message in context: http://n2.nabble.com/desktop-shortcuts-not-working-tp4695442p4695442.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] migratefeaturestates
I am trying to get the migratefeature state options working. I installed a first version of mu application and went through custom to set the features to non-default items Then ran my major upgrade, and chose custom, but the chosen features were not selected. I ran the verbose log, and it does seem that the migratefeaturesstates is getting called. The action started and ended with a return value of 0 None of my features have changed. So i really don't know what i am doing wrong. Upgrade Id='f7e2cacc-966d-4b88-af4e-e0e22b0d3761' UpgradeVersion OnlyDetect='no' Property='PREVFOUND' Minimum='1.2.0' IncludeMinimum='yes' Maximum='1.2.0' IncludeMaximum='no' MigrateFeatures='yes'/ UpgradeVersion OnlyDetect='yes' Property='SELFFOUND' Minimum='1.2.0' IncludeMinimum='yes' Maximum='1.2.0' IncludeMaximum='yes' / UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND' Minimum='1.2.0' IncludeMinimum='no' / /Upgrade InstallExecuteSequence MigrateFeatureStates Suppress=no/ Custom Action='AlreadyUpdated' After='FindRelatedProducts'SELFFOUND/Custom Custom Action='NoDowngrade' After='FindRelatedProducts'NEWERFOUND/Custom RemoveExistingProducts After=InstallValidate/ /InstallExecuteSequence Any help would be appreciated Thanks -- View this message in context: http://n2.nabble.com/migratefeaturestates-tp4695528p4695528.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] desktop shortcuts not working
Did not know that that id had to be the correct name. Changed it to Desktopfolder and it worked! Thanks. -- View this message in context: http://n2.nabble.com/desktop-shortcuts-not-working-tp4695442p4695834.html Sent from the wix-users mailing list archive at Nabble.com. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users