edit config.ini after copy files from CD/DVD

Got a problem you cannot solve? Try here.
Post Reply
Holgerb
Posts: 3
Joined: Wed Mar 23, 2011 1:47 am

edit config.ini after copy files from CD/DVD

Post by Holgerb »

Hello,

i' ve the Problem, that my native Setup install the SQL Server 2008....
Then i copy folders with config.ini files to the $TARGETDR$

After that i put with the Acces Control the config.ini file read and writable

Than i want to edit the ini file but if i install from cd i habe no right to write in the file

CAN you help me please

here i the part of my script


...
~InstallAware Clipboard Data~
~If~
~{D96B1917-3947-4EC1-BF07-F0F90543BDC3}~
~SUCCESS~
~0~
~ERROR~
~TRUE~
~Edit INI File~
~{2D06444F-3AD6-4306-B244-D03BF7BD9794}~
~$TARGETDIR_X86$\WS-Organizer\~
~config.ini~
~0~
~SQL~
~Host~
~$computername$~
~Edit INI File~
~{7E0EE03E-4588-4C64-B72B-B14D14992C81}~
~$TARGETDIR_X86$\WS-Organizer\~
~Config.ini~
~0~
~SQL~
~Server~
~Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=$Anlagen_Nr$;Data Source=$computername$\SQLEXPRESS~
~Edit INI File~
~{2FACD168-D9AC-46F0-BF73-1BCABC9A2A9C}~
~$TARGETDIR_X86$\Server\~
~Config.ini~
~0~
~Backuppath~
~path ~
~c:\DBBackup~
~Edit INI File~
~{AFF55D34-D676-48E7-83A8-C7DAC2E02ED8}~
~$TARGETDIR_X86$\Server\~
~Config.ini~
~0~
~SQL~
~Host~
~$computername$~
~Edit INI File~
~{2F6C0E7C-7348-475F-924B-AF46BB9AFB98}~
~$TARGETDIR_X86$\Server\~
~Config.ini~
~0~
~SQL~
~Server~
~Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=$Anlagen_Nr$;Data Source=$computername$\SQLEXPRESS~
~End~
~{C9D3377F-65C5-42F7-8E64-C3D1888BDC71}~
~End~
~{F9613B64-3931-4EE2-80D3-3AB935182B73}~
~Set Access Control~
~{338502F6-D7B2-4EF4-AB60-3D5F94EC8BC8}~
~$TARGETDIR_X86$\WS-Organiser\config.ini~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~Set Access Control~
~{096779B9-FC69-4F51-A340-B689BBF237D7}~
~$TARGETDIR_X86$\Server\config.ini~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~Set Access Control~
~{0BFB1295-BECD-44AB-ADF3-607BCEE22F4B}~
~$TARGETDIR_X86$\Auto Backup\backdb.sql~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~Set Access Control~
~{DDB0FB2A-6609-408A-8567-FC35358BE224}~
~$TARGETDIR_X86$\Auto Backup\backdb.bat~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~TRUE~
~TRUE~
~FALSE~
~FALSE~
~FALSE~
~FALSE~
~Comment~
~{9C5C277F-8550-4732-8B40-97B5022B1C85}~
~Berechtigungen freigeben~
~If~
~{129C8D63-6BC7-415F-AF15-1344C0EF0D9D}~
~SUCCESS~
~0~
~CANCEL~
~TRUE~
~If~
~{EF3A227E-07BE-4C9F-8F67-62200B09CAD3}~
~SUCCESS~
~0~
~ERROR~
~TRUE~
~Apply Changes~
~{A7A3F45C-3ED4-4DA4-8E9C-4E0216199B12}~
~progress~
~SUCCESS~
~TRUE~
~FALSE~
~Create Shortcut~
~{857409EE-680B-4704-941F-CAEE43A3368A}~
~$TARGETDIR_X86$\Server\CWO_Server.exe~
~CWO_Server~
~$STARTUPFOLDER$~
~~
~~
~$TARGETDIR_X86$\Server~
~~
~|~
~0|~
~Create Shortcut~
~{70FCE27E-2C5D-4D70-875C-50F5C50E45C9}~
~$TargetDir_X86$\QuickSupport\QuickSupport.exe~
~QuickSupport~
~$DESKTOPDIR$~
~QuickSupport~
~~
~$TargetDir_X86$\QuickSupport~
~~
~|~
~0|X~
~Get Folder Location~
~{37D17A52-1B72-4E80-A030-6801D7D3DB4E}~
~SHORTCUTROOT~
~12~
~FALSE~
~Copy/Move Local Files~
~{64C5446F-C2E2-4041-A9DD-321208C7FCB0}~
~$EXEDIR$\\Zusatzprogramme\QuickSupport~
~*.*~
~$TARGETDIR_X86$\QuickSupport~
~*.*~
~TRUE~
~FALSE|TRUE~
~Create Shortcut~
~{CAD6550A-5737-4231-BEF9-DDCE4DA18342}~
~$TARGETDIR_X86$\Server\CWO_Server.exe~
~CWO_Server~
~$DESKTOPDIR$~
~~
~~
~$TARGETDIR_X86$\Server~
~~
~|~
~0|~
~Create Shortcut~
~{A85320A5-A5D5-4AA3-BA21-792B9A15F60B}~
~$TARGETDIR_X86$\WS-Organizer\WS_Organizer.exe~
~WS_Organizer~
~$DESKTOPDIR$~
~~
~~
~$TARGETDIR_X86$\WS-Organizer~
~~
~|~
~0|~
~Create Shortcut~
~{4CC7A6FD-CAA2-4DC6-8D90-DD63F85299AA}~
~$TARGETDIR_X86$\Tools\Database_Tool.exe~
~Databasetool~
~$SHORTCUTFOLDER$~
~~
~~
~$TARGETDIR_X86$\Tools~
~~
~|~
~0|~
~Create Shortcut~
~{3455982A-3135-4980-B798-C5418F45DFC8}~
~$TARGETDIR_X86$\WS-Organizer\WS_Organizer.exe~
~WS_Organizer~
~$SHORTCUTFOLDER$~
~~
~~
~$TARGETDIR_X86$\WS-Organizer~
~~
~|~
~0|~
~Create Shortcut~
~{4D1EF9A2-4AFB-4204-B2C4-C56CDBCB1C34}~
~$TARGETDIR_X86$\Server\CWO_Server.exe~
~CWO_Server~
~$SHORTCUTFOLDER$~
~~
~~
~$TARGETDIR_X86$\Server~
~~
~|~
~0|~
~Copy/Move Local Files~
~{66BCB513-1321-4754-8FAE-32C4B1BC57C6}~
~$EXEDIR$\Manuals~
~*.*~
~$TARGETDIR_X86$\Manuals~
~*.*~
~TRUE~
~FALSE|TRUE~
~Copy/Move Local Files~
~{7885C66D-57AE-4A76-AB6C-AE14EB7D52D5}~
~$EXEDIR$\CWO~
~*.*~
~$TARGETDIR_X86$\~
~*.*~
~TRUE~
~FALSE|TRUE~
~Else~
~{0A6FE7E8-3BF2-42AC-8A05-DE48D26381D8}~
~Apply Changes~
~{78E159FA-12F3-4C8B-83CD-71DA32EEDEAF}~
~progress~
~SUCCESS~
~FALSE~
~FALSE~
~If~
~{2B311342-8F9D-4FB8-B496-6BB31A17FC58}~
~ADVERTISE~
~0~
~TRUE~
~FALSE~
...
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: edit config.ini after copy files from CD/DVD

Post by giaviv »

What makes you say you have no rights? Which error are you getting?

Also, in the Edit INI File commands, you dont need a / at the end of the Path. FYI :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Holgerb
Posts: 3
Joined: Wed Mar 23, 2011 1:47 am

Re: edit config.ini after copy files from CD/DVD

Post by Holgerb »

if installaware want to edit the "ini" file
there comes the message access denied

c:\Programm Files\..........

If i Install it from a external USB HD, then will it work fine.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: edit config.ini after copy files from CD/DVD

Post by giaviv »

Which UAC elevation do you have selected for your installer?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Holgerb
Posts: 3
Joined: Wed Mar 23, 2011 1:47 am

Re: edit config.ini after copy files from CD/DVD

Post by Holgerb »

Always Elevate (require Administrator) because i install SQL 2008
Under Special Requirements i choose Administrator priviledges

It works if i install from a USB Harddisk
If i install it from a CD It Doesnt work
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: edit config.ini after copy files from CD/DVD

Post by giaviv »

Hey,

Can you try doing the following - create an empty project from the Basic Setup template.
Add your INI file editing to the project but that's it. Run that installer and let me know the results.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply