vnuser
01-23-2002, 02:27 PM
Demoshield 7, File Resource = txt file created with notepad:
When using the Send-to file function with Process file for Tokens enabled, demoshield writes a blank file. If I change the resource to an rtf file resource created with wordpad, it parses the tokens correctly. Unfortunately the processed rtf file contains extra page codes which prevent me from creating a properly formatted .reg file to run regedit and add an entry into the users RunOnce registry key.
My demo detects and installs as needed a system service pack and an internet browser. Basically after a user installs a service pack, I need the demo to add a RunOnce registry entry to automatically start the demo again after the system reboots. I've got eveything working except parsing the <Path> token in the resource txt file. It keeps writing a blank file. Not even the non-token-ized data is written out to the file. However, if I create the file with wordpad and save as an rtf file, and import it under File Resource, it parses the <Global.Number1(Global)> token correctly but not the <Path> token. Is their an easier(or functional) way to have the demo start back up after a computer reboots such as: <Path>\DEMO32.EXE -vn15 Demo.DBD
When using the Send-to file function with Process file for Tokens enabled, demoshield writes a blank file. If I change the resource to an rtf file resource created with wordpad, it parses the tokens correctly. Unfortunately the processed rtf file contains extra page codes which prevent me from creating a properly formatted .reg file to run regedit and add an entry into the users RunOnce registry key.
My demo detects and installs as needed a system service pack and an internet browser. Basically after a user installs a service pack, I need the demo to add a RunOnce registry entry to automatically start the demo again after the system reboots. I've got eveything working except parsing the <Path> token in the resource txt file. It keeps writing a blank file. Not even the non-token-ized data is written out to the file. However, if I create the file with wordpad and save as an rtf file, and import it under File Resource, it parses the <Global.Number1(Global)> token correctly but not the <Path> token. Is their an easier(or functional) way to have the demo start back up after a computer reboots such as: <Path>\DEMO32.EXE -vn15 Demo.DBD