Native engine feedback.
Posted: Wed Jun 08, 2011 3:06 am
I'm just wondering if someone could comment on my use of the native engine. First, the background: my package installs an ini file which I stamped as permanent. For that reason, the file survives when I uninstall the package. All well so far. When I install the package, if the file exists I read it with the Get Ini command and I get a value back which I present in a dialog so that it's value can be edited. I then later run the Apply Install command and that creates the file if it's not there. After Apply Install returns I then execute Edit Ini File and write the (possibly) edited value back to the file.
Edit Ini File is a purple command. Having run Apply Install once to create the file if it doesn't exist, should I run Apply Install a second time after I execute Edit Ini File? I can't remember if executing Apply Install clears down the cached list of commands when it's finished?
What I did after Apply Install returns successfully is to switch into native engine mode and then execute Edit Ini File. The file is then updated and all works fine. Clearly, I've found a good use for using the native engine as it removes the uncertainty I have about what happens if I were to run two Apply Installs. Another part of me thinks I should have put the Edit Ini File immediately before the Apply Install as in theory it should be the last command to be executed? That is, the file is installed earlier in the sequence so when Edit Ini File is executed the file has now been installed. Does it work like that in practice? Perhaps I did not need the native engine but it was quite clear that it would do what I needed. I'm not sure though if I really need to use it the way I did? Comments appreciated.
Edit Ini File is a purple command. Having run Apply Install once to create the file if it doesn't exist, should I run Apply Install a second time after I execute Edit Ini File? I can't remember if executing Apply Install clears down the cached list of commands when it's finished?
What I did after Apply Install returns successfully is to switch into native engine mode and then execute Edit Ini File. The file is then updated and all works fine. Clearly, I've found a good use for using the native engine as it removes the uncertainty I have about what happens if I were to run two Apply Installs. Another part of me thinks I should have put the Edit Ini File immediately before the Apply Install as in theory it should be the last command to be executed? That is, the file is installed earlier in the sequence so when Edit Ini File is executed the file has now been installed. Does it work like that in practice? Perhaps I did not need the native engine but it was quite clear that it would do what I needed. I'm not sure though if I really need to use it the way I did? Comments appreciated.